summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-12-09 13:25:04 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2019-12-09 13:25:04 -0500
commit930087ea92291bba1bc55f606aa5e1efcb622a75 (patch)
treea219b791063b1336e0a696f9d591f74c45b77a52 /src
parent1769d3c1a57766191b7a5007e854653f3132195d (diff)
set default window size to 1300x800
Diffstat (limited to 'src')
-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);