aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 03fc0d8..066a612 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2,7 +2,6 @@
#include "InstanceManager.hpp"
#include "LuaRuntime.hpp"
-#include "WindowActionRouter.hpp"
#include "widgets/BrowserApp.hpp"
QCommandLineParser *create_cli_parser() {
@@ -35,13 +34,9 @@ int main(int argc, char *argv[]) {
QObject::connect(&instance_manager, &InstanceManager::lua_eval_requested,
&lua, &LuaRuntime::evaluate);
QObject::connect(&instance_manager, &InstanceManager::urls_open_requested,
- &lua, [browser](const QStringList &urls) {
- qDebug() << urls;
- browser->create_window(urls);
- });
+ browser, &BrowserApp::create_window);
} else {
qInfo() << "Using current instance";
-
auto urls = parser->positionalArguments();
auto lua_expr = parser->value("expr");