]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #3124: Show messages independently on SizeOfViewWidget visibility.
authorvsv <vsv@opencascade.com>
Wed, 18 Dec 2019 09:18:25 +0000 (12:18 +0300)
committervsv <vsv@opencascade.com>
Wed, 18 Dec 2019 09:18:25 +0000 (12:18 +0300)
src/PartSet/PartSet_WidgetSketchLabel.cpp

index 0a14abf97dc356d03dd68d6a76c81ebb34ad22d4..0185172b98c85ec4669e203a6f8c3bf5cf101c7d 100644 (file)
@@ -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();
+    }
   }
 }