summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-09 13:28:38 -0500
committerGitHub <noreply@github.com>2019-12-09 13:28:38 -0500
commit29d16f879d45a9eb42d91fca00cb8712d22a83c8 (patch)
treea219b791063b1336e0a696f9d591f74c45b77a52 /src/mainwindow.cpp
parent1769d3c1a57766191b7a5007e854653f3132195d (diff)
parent930087ea92291bba1bc55f606aa5e1efcb622a75 (diff)
Merge pull request #935 from isanae/default-window-size
Set default window size to 1300x800
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index b5900c6c..ea202064 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -2201,7 +2201,10 @@ void MainWindow::readSettings()
{
const auto& s = m_OrganizerCore.settings();
- s.geometry().restoreGeometry(this);
+ if (!s.geometry().restoreGeometry(this)) {
+ resize(1300, 800);
+ }
+
s.geometry().restoreState(this);
s.geometry().restoreDocks(this);
s.geometry().restoreToolbars(this);