aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2017-09-27 11:44:05 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2017-09-27 11:44:05 +0200
commitef3ab866bc2d1c215eea90fba0651db7a6e87c43 (patch)
tree9c16f594bc3b20e6bf52a181126543ed826fe974 /src/main.cpp
parentPassing full arguments to running instance (diff)
downloadsmolbote-ef3ab866bc2d1c215eea90fba0651db7a6e87c43.tar.xz
Code cleanup
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 87def7a..9df24b2 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -133,11 +133,7 @@ int main(int argc, char *argv[])
// app.loadPlugins();
// }
- MainWindow *w = new MainWindow(options.value("urls").toStringList());
- if(options.contains("profile")) {
- w->setProfile(app.profile(options.value("profile").toString()));
- }
- app.addWindow(w);
+ app.createWindow(options);
}
return app.exec();