Removed unnecessary call to AboutToShowViewMenu() -> Increase constness of MainWindow::SaveSettings()

This commit is contained in:
PKEuS 2012-10-27 12:26:51 +02:00
parent 7c8f6173c1
commit 10d338d4a7
2 changed files with 2 additions and 5 deletions

View File

@ -256,11 +256,8 @@ void MainWindow::LoadSettings()
} }
void MainWindow::SaveSettings() void MainWindow::SaveSettings() const
{ {
//Force toolbar checkbox value to be updated
AboutToShowViewMenu();
// Window/dialog sizes // Window/dialog sizes
mSettings->setValue(SETTINGS_WINDOW_WIDTH, size().width()); mSettings->setValue(SETTINGS_WINDOW_WIDTH, size().width());
mSettings->setValue(SETTINGS_WINDOW_HEIGHT, size().height()); mSettings->setValue(SETTINGS_WINDOW_HEIGHT, size().height());

View File

@ -364,7 +364,7 @@ private:
* @brief Save program settings * @brief Save program settings
* *
*/ */
void SaveSettings(); void SaveSettings() const;
/** /**
* @brief Format main window title. * @brief Format main window title.