aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop-widgets/mainwindow.cpp2
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp5
-rw-r--r--desktop-widgets/tab-widgets/maintab.h1
3 files changed, 1 insertions, 7 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index c509a7607..0760e747d 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -404,7 +404,7 @@ void MainWindow::enableDisableOtherDCsActions()
void MainWindow::setDefaultState()
{
setApplicationState("Default");
- if (mainTab->getEditMode() != MainTab::NONE)
+ if (mainTab->isEditing())
ui.bottomLeft->currentWidget()->setEnabled(false);
}
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index 7dda4c0e7..d1e47ddd9 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -704,11 +704,6 @@ void MainTab::reload()
mark_divelist_changed(true); \
} while (0)
-MainTab::EditMode MainTab::getEditMode() const
-{
- return editMode;
-}
-
void MainTab::refreshDisplayedDiveSite()
{
struct dive_site *ds = get_dive_site_for_dive(current_dive);
diff --git a/desktop-widgets/tab-widgets/maintab.h b/desktop-widgets/tab-widgets/maintab.h
index 9968472c9..8b08cdf68 100644
--- a/desktop-widgets/tab-widgets/maintab.h
+++ b/desktop-widgets/tab-widgets/maintab.h
@@ -97,7 +97,6 @@ slots:
void toggleTriggeredColumn();
void updateTextLabels(bool showUnits = true);
void escDetected(void);
- EditMode getEditMode() const;
private:
Ui::MainTab ui;
WeightModel *weightModel;