diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2013-10-24 23:02:59 -0200 |
---|---|---|
committer | Tomaz Canabrava <tcanabrava@kde.org> | 2013-10-24 23:02:59 -0200 |
commit | 7bea2e1be062cd6ac4aa79f62bcd5cd42aa44d4a (patch) | |
tree | d86a23bffaf3d615265800a6453b4854eb9a3c36 | |
parent | 6cf875ed92d1d526fa91f3712109a19bd754c6d2 (diff) | |
download | subsurface-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>
-rw-r--r-- | qt-ui/mainwindow.cpp | 5 | ||||
-rw-r--r-- | qt-ui/mainwindow.h | 1 | ||||
-rw-r--r-- | qt-ui/subsurfacewebservices.cpp | 4 |
3 files changed, 9 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index bb21e6625..5a2f872b4 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -255,6 +255,11 @@ void MainWindow::on_actionDownloadWeb_triggered() SubsurfaceWebServices::instance()->exec(); } +void MainWindow::on_actionDivelogs_de_triggered() +{ + DivelogsDeWebServices::instance()->exec(); +} + void MainWindow::on_actionEditDeviceNames_triggered() { DiveComputerManagementDialog::instance()->init(); diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index 5dfae3e98..45f9fd37a 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -69,6 +69,7 @@ private slots: /* log menu actions */ void on_actionDownloadDC_triggered(); void on_actionDownloadWeb_triggered(); + void on_actionDivelogs_de_triggered(); void on_actionEditDeviceNames_triggered(); void on_actionAddDive_triggered(); void on_actionRenumber_triggered(); 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) |