From: vsv Date: Wed, 18 Dec 2019 09:18:25 +0000 (+0300) Subject: Issue #3124: Show messages independently on SizeOfViewWidget visibility. X-Git-Tag: V9_5_0a1~84 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=613e08f568fe6aadf79935d5b66b0757c9b1eb9f;p=modules%2Fshaper.git Issue #3124: Show messages independently on SizeOfViewWidget visibility. --- 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(); + } } }