mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
Cleanup: remove MainWindow::recreateDiveList() function
The function had only one line and had only one caller. We might just as well fold that line into the caller. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
958032b21c
commit
a9da44b402
2 changed files with 1 additions and 7 deletions
|
@ -408,7 +408,7 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList)
|
||||||
mainTab->reload();
|
mainTab->reload();
|
||||||
TankInfoModel::instance()->update();
|
TankInfoModel::instance()->update();
|
||||||
if (doRecreateDiveList)
|
if (doRecreateDiveList)
|
||||||
recreateDiveList();
|
diveList->reload();
|
||||||
|
|
||||||
MapWidget::instance()->reload();
|
MapWidget::instance()->reload();
|
||||||
setApplicationState(ApplicationState::Default);
|
setApplicationState(ApplicationState::Default);
|
||||||
|
@ -418,11 +418,6 @@ void MainWindow::refreshDisplay(bool doRecreateDiveList)
|
||||||
ui.actionAutoGroup->setChecked(autogroup);
|
ui.actionAutoGroup->setChecked(autogroup);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::recreateDiveList()
|
|
||||||
{
|
|
||||||
diveList->reload();
|
|
||||||
}
|
|
||||||
|
|
||||||
void MainWindow::configureToolbar()
|
void MainWindow::configureToolbar()
|
||||||
{
|
{
|
||||||
if (current_dive) {
|
if (current_dive) {
|
||||||
|
|
|
@ -163,7 +163,6 @@ slots:
|
||||||
void turnOffNdlTts();
|
void turnOffNdlTts();
|
||||||
void readSettings();
|
void readSettings();
|
||||||
void refreshDisplay(bool doRecreateDiveList = true);
|
void refreshDisplay(bool doRecreateDiveList = true);
|
||||||
void recreateDiveList();
|
|
||||||
void showProfile();
|
void showProfile();
|
||||||
void refreshProfile();
|
void refreshProfile();
|
||||||
void editCurrentDive();
|
void editCurrentDive();
|
||||||
|
|
Loading…
Reference in a new issue