diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2014-08-04 22:45:17 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-08-04 22:45:17 -0700 |
commit | 78fee704501e2d95b4e2c3c19b17305ab952a9af (patch) | |
tree | 685a5084e0aff69d48305a26781d54587e2c8155 /qt-ui/maintab.cpp | |
parent | eca96ee8b7cb59bad69569dee1cbee9c4cafe6bb (diff) | |
download | subsurface-78fee704501e2d95b4e2c3c19b17305ab952a9af.tar.gz |
Correctly remove the Close button from most message widgets
The only time we want the close button is when showing an error at the
bottom of the main window.
In the other cases (maintab, globe) we need to explicitly hide it.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 652e8242e..c704f5516 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -227,6 +227,10 @@ void MainTab::closeMessage() void MainTab::displayMessage(QString str) { + ui.diveNotesMessage->setCloseButtonVisible(false); + ui.diveEquipmentMessage->setCloseButtonVisible(false); + ui.diveInfoMessage->setCloseButtonVisible(false); + ui.diveStatisticsMessage->setCloseButtonVisible(false); ui.diveNotesMessage->setText(str); ui.diveNotesMessage->animatedShow(); ui.diveEquipmentMessage->setText(str); |