diff options
author | Berthold Stoeger <bstoeger@mail.tuwien.ac.at> | 2019-04-13 15:41:47 +0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2019-04-15 10:30:04 +1200 |
commit | 4bb002d1370a9eb4ebe5a1210b969edc5cdba893 (patch) | |
tree | 77e4fc57551728292fbdbfaf2a135ee6a0af829d /desktop-widgets/mainwindow.cpp | |
parent | 88dc32fdfcb7cb63b0e47280d1f38395077df757 (diff) | |
download | subsurface-4bb002d1370a9eb4ebe5a1210b969edc5cdba893.tar.gz |
Cleanup: Remove MainTab::getEditMode() function
The only caller of said function used to check whether MainTab is
in edit mode. For this case there is already a function - use that
instead.
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r-- | desktop-widgets/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 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); } |