mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -97,7 +97,6 @@ slots:
|
|||
void toggleTriggeredColumn();
|
||||
void updateTextLabels(bool showUnits = true);
|
||||
void escDetected(void);
|
||||
EditMode getEditMode() const;
|
||||
private:
|
||||
Ui::MainTab ui;
|
||||
WeightModel *weightModel;
|
||||
|
|
Loading…
Reference in a new issue