diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/main.cpp b/src/main.cpp index e8307c6..084e102 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -119,13 +119,6 @@ int main(int argc, char *argv[]) return 0; } - Browser::SessionParam sessionParams; - sessionParams.profile = parser.value(profileOption); - sessionParams.newWindow = parser.isSet(newWindowOption); - for(const QString &url : parser.positionalArguments()) { - sessionParams.urls.append(QUrl::fromUserInput(url)); - } - // TODO: check for other instances // if we socket hasn't been disabled (socket is not none) if(parser.value(socketOption) != "none") { @@ -134,7 +127,7 @@ int main(int argc, char *argv[]) qDebug("Connected to local socket: %s", qUtf8Printable(instance.serverName())); } else { // pass arguments to new instance - return instance.sendMessage(sessionParams); + return instance.sendMessage(parser.value(profileOption), parser.isSet(newWindowOption), parser.positionalArguments()); } } @@ -173,7 +166,7 @@ int main(int argc, char *argv[]) instance.setConfiguration(config); instance.loadProfiles(); - instance.createSession(sessionParams); + instance.createSession(parser.value(profileOption), parser.isSet(newWindowOption), parser.positionalArguments()); #ifdef QT_DEBUG qDebug("Startup complete in %lldms", timer.elapsed()); |