mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
88dc32fdfc
commit
4bb002d137
3 changed files with 1 additions and 7 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue