aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow/mainwindow.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mainwindow/mainwindow.cpp b/src/mainwindow/mainwindow.cpp
index 0234f13..6558c65 100644
--- a/src/mainwindow/mainwindow.cpp
+++ b/src/mainwindow/mainwindow.cpp
@@ -38,12 +38,12 @@ MainWindow::MainWindow(std::shared_ptr<Configuration> &config, QWidget *parent)
m_config = config;
// create UI
- resize(config->value<int>("mainwindow.width").value(), config->value<int>("mainwindow.height").value());
setWindowTitle(QString::fromStdString(config->value<std::string>("mainwindow.title").value()));
- if(config->value<bool>("mainwindow.maximized").value())
- showMaximized();
- else
- show();
+ resize(config->value<int>("mainwindow.width").value(), config->value<int>("mainwindow.height").value());
+ if(config->value<bool>("mainwindow.maximized").value()) {
+ setWindowState(Qt::WindowMaximized);
+ }
+ show();
createMenuBar();