From fd1a33d9357cd1ff615d8008af7e82e75821c939 Mon Sep 17 00:00:00 2001 From: "Lubomir I. Ivanov" Date: Thu, 12 Feb 2015 01:12:10 +0200 Subject: mainwindow.cpp: don't use ui.globePane Signed-off-by: Lubomir I. Ivanov Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index a0e4f128d..257f394d6 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -126,7 +126,6 @@ MainWindow::MainWindow() : QMainWindow(), divePlannerWidget()->settingsChanged(); divePlannerSettingsWidget()->settingsChanged(); #ifdef NO_MARBLE - ui.globePane->hide(); ui.menuView->removeAction(ui.actionViewGlobe); #else connect(globe(), SIGNAL(coordinatesChanged()), information(), SLOT(updateGpsCoordinates())); @@ -230,9 +229,6 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList) globe()->reload(); if (doRecreateDiveList) recreateDiveList(); -#ifdef NO_MARBLE - ui.globePane->hide(); -#endif setApplicationState("Default"); dive_list()->setEnabled(true); @@ -556,9 +552,6 @@ void MainWindow::on_actionReplanDive_triggered() divePlannerWidget()->setReplanButton(true); DivePlannerPointsModel::instance()->loadFromDive(current_dive); reset_cylinders(&displayed_dive, true); -#ifdef NO_MARBLE - ui.globePane->show(); -#endif } void MainWindow::on_actionDivePlanner_triggered() @@ -578,10 +571,6 @@ void MainWindow::on_actionDivePlanner_triggered() DivePlannerPointsModel::instance()->createSimpleDive(); DivePictureModel::instance()->updateDivePictures(); divePlannerWidget()->setReplanButton(false); - -#ifdef NO_MARBLE - ui.globePane->show(); -#endif } DivePlannerWidget* MainWindow::divePlannerWidget() { -- cgit v1.2.3-70-g09d2