summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-04 22:45:17 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-08-04 22:45:17 -0700
commit78fee704501e2d95b4e2c3c19b17305ab952a9af (patch)
tree685a5084e0aff69d48305a26781d54587e2c8155 /qt-ui/globe.cpp
parenteca96ee8b7cb59bad69569dee1cbee9c4cafe6bb (diff)
downloadsubsurface-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/globe.cpp')
-rw-r--r--qt-ui/globe.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index 8af76ac2a..b9bbf2dde 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -287,6 +287,7 @@ void GlobeGPS::prepareForGetDiveCoordinates()
messageWidget->setMessageType(KMessageWidget::Warning);
messageWidget->setText(QObject::tr("Move the map and double-click to set the dive location"));
messageWidget->setWordWrap(true);
+ messageWidget->setCloseButtonVisible(false);
messageWidget->animatedShow();
editingDiveLocation = true;
if (!dive_has_gps_location(current_dive))