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>
This commit is contained in:
Tomaz Canabrava 2013-06-20 18:48:21 -03:00
parent fdd8a4811b
commit 062515ba6f
3 changed files with 19 additions and 3 deletions

View file

@ -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();