summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-20 18:48:21 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-06-20 18:48:21 -0300
commit062515ba6f92fa7b4d72403ed195b28ad6d996f7 (patch)
treec9ec05365574236c39f4b1b29117f1370fc22aaa /qt-ui/mainwindow.cpp
parentfdd8a4811bd598cd661cda5a9c057749dc1a11d1 (diff)
downloadsubsurface-062515ba6f92fa7b4d72403ed195b28ad6d996f7.tar.gz
Added back the menu entry 'Dive Planner'
Added back the menu entry Dive Planner, and removed the calee code from the Print action. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 75fb21a64..b61f962c4 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -179,11 +179,19 @@ void MainWindow::on_actionExportUDDF_triggered()
void MainWindow::on_actionPrint_triggered()
{
- // hijacking the print action for a while.
- DivePlanner::instance()->show();
qDebug("actionPrint");
}
+void MainWindow::on_actionDivePlanner_triggered()
+{
+ DivePlanner *planner = DivePlanner::instance();
+ if (planner->exec() == QDialog::Accepted){
+ struct dive *d = planner->getDive();
+ qDebug() << "Finish me.";
+ }
+}
+
+
void MainWindow::on_actionPreferences_triggered()
{
PreferencesDialog::instance()->show();