From 9c4dd932c6d692178bb8d5265c634126cb415767 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 26 May 2020 22:23:25 +0300 Subject: Turn on more warnings by default - fix clazy warnings - fix various other compiler warnings - bugfix: connect profiles' downloadRequested signal --- src/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index f0c1591..dad1f73 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -132,15 +132,13 @@ int main(int argc, char **argv) return c.value("profile.default").value(); }(); - app.setup(); - QStringList urls; - for(const auto &u : args::get(cmd_args)) { urls.append(QString::fromStdString(u)); } - if(urls.isEmpty()) + if(urls.isEmpty()) { urls.append(QString()); + } // if app is primary, create new sessions from received messages if(app.isPrimary() && !cmd_noRemote) { -- cgit v1.2.1