From ef3ab866bc2d1c215eea90fba0651db7a6e87c43 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 27 Sep 2017 11:44:05 +0200 Subject: Code cleanup --- src/main.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/main.cpp') 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(); -- cgit v1.2.1