aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-10-24 23:02:59 -0200
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-10-24 23:02:59 -0200
commit7bea2e1be062cd6ac4aa79f62bcd5cd42aa44d4a (patch)
treed86a23bffaf3d615265800a6453b4854eb9a3c36 /qt-ui/subsurfacewebservices.cpp
parent6cf875ed92d1d526fa91f3712109a19bd754c6d2 (diff)
downloadsubsurface-7bea2e1be062cd6ac4aa79f62bcd5cd42aa44d4a.tar.gz
Minimum hooking-up done, divelogs.de shows on menu-activation.
This patch does the hooking up to show the dialog of the divelogs.de window when the user selects it on the menu.: Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r--qt-ui/subsurfacewebservices.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp
index edca1ee74..7ece0a640 100644
--- a/qt-ui/subsurfacewebservices.cpp
+++ b/qt-ui/subsurfacewebservices.cpp
@@ -269,7 +269,9 @@ static bool merge_locations_into_dives(void)
DivelogsDeWebServices* DivelogsDeWebServices::instance()
{
-
+ static DivelogsDeWebServices *self = new DivelogsDeWebServices();
+ self->setAttribute(Qt::WA_QuitOnClose, false);
+ return self;
}
DivelogsDeWebServices::DivelogsDeWebServices(QWidget* parent, Qt::WindowFlags f): WebServices(parent, f)