Skip to content

Commit 10d338d

Browse files
committed
Removed unnecessary call to AboutToShowViewMenu() -> Increase constness of MainWindow::SaveSettings()
1 parent 7c8f617 commit 10d338d

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

gui/mainwindow.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,11 +256,8 @@ void MainWindow::LoadSettings()
256256

257257
}
258258

259-
void MainWindow::SaveSettings()
259+
void MainWindow::SaveSettings() const
260260
{
261-
//Force toolbar checkbox value to be updated
262-
AboutToShowViewMenu();
263-
264261
// Window/dialog sizes
265262
mSettings->setValue(SETTINGS_WINDOW_WIDTH, size().width());
266263
mSettings->setValue(SETTINGS_WINDOW_HEIGHT, size().height());

gui/mainwindow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ protected slots:
364364
* @brief Save program settings
365365
*
366366
*/
367-
void SaveSettings();
367+
void SaveSettings() const;
368368

369369
/**
370370
* @brief Format main window title.

0 commit comments

Comments
 (0)