Commit 50e331e3 authored by Nate Graham's avatar Nate Graham 🔩

Don't unnecessary call {save,restore}WindowSize() in katemainwindow.cpp

These function calls are done right after saveMainWindowSettings()
and saveMainWindowSettings(), which call those functions internally. No
need to do it again.

There are no behavioral changes from this commit.
parent 3cdd39f1
......@@ -1098,7 +1098,6 @@ void KateMainWindow::saveWindowConfig(const KConfigGroup &_config)
{
KConfigGroup config(_config);
saveMainWindowSettings(config);
KWindowConfig::saveWindowSize(windowHandle(), config);
config.writeEntry("WindowState", static_cast<int>(windowState()));
config.sync();
}
......@@ -1107,7 +1106,6 @@ void KateMainWindow::restoreWindowConfig(const KConfigGroup &config)
{
setWindowState(Qt::WindowNoState);
applyMainWindowSettings(config);
KWindowConfig::restoreWindowSize(windowHandle(), config);
setWindowState(QFlags<Qt::WindowState>(config.readEntry("WindowState", int(Qt::WindowActive))));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment