mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
mainwindow.cpp: don't use ui.globePane
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
dca78fe6fc
commit
fd1a33d935
1 changed files with 0 additions and 11 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue