From 613e08f568fe6aadf79935d5b66b0757c9b1eb9f Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 18 Dec 2019 12:18:25 +0300 Subject: [PATCH] Issue #3124: Show messages independently on SizeOfViewWidget visibility. --- src/PartSet/PartSet_WidgetSketchLabel.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/PartSet/PartSet_WidgetSketchLabel.cpp b/src/PartSet/PartSet_WidgetSketchLabel.cpp index 0a14abf97..0185172b9 100644 --- a/src/PartSet/PartSet_WidgetSketchLabel.cpp +++ b/src/PartSet/PartSet_WidgetSketchLabel.cpp @@ -586,16 +586,19 @@ void PartSet_WidgetSketchLabel::showEvent(QShowEvent* theEvent) void PartSet_WidgetSketchLabel::onShowPanel() { - if (mySizeOfViewWidget->isVisible()) { + //if (mySizeOfViewWidget->isVisible()) { + if (myStackWidget->currentIndex() == 0) { DocumentPtr aDoc = feature()->document(); DocumentPtr aModDoc = ModelAPI_Session::get()->moduleDocument(); if (aModDoc == aDoc) { myPartSetMessage->move(mapToGlobal(geometry().bottomLeft())); myPartSetMessage->show(); } - QPoint aPnt = mySizeOfView->mapToGlobal(mySizeOfView->geometry().center()); - mySizeMessage->move(aPnt); - mySizeMessage->show(); + if (mySizeOfViewWidget->isVisible()) { + QPoint aPnt = mySizeOfView->mapToGlobal(mySizeOfView->geometry().center()); + mySizeMessage->move(aPnt); + mySizeMessage->show(); + } } } -- 2.39.2