aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-06-14 12:45:51 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2018-06-14 12:45:51 +0200
commitc5665c40f923a477b7ec0bcd7f57c92e98634ef6 (patch)
tree44d42621f63f1a476c2971431a9bf2ce99aa2544 /src
parentCompleter: double clicking on an item activates it (diff)
downloadsmolbote-c5665c40f923a477b7ec0bcd7f57c92e98634ef6.tar.xz
Add poi.desktop
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();