diff options
Diffstat (limited to 'src/widgets/BrowserApp.cpp')
| -rw-r--r-- | src/widgets/BrowserApp.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widgets/BrowserApp.cpp b/src/widgets/BrowserApp.cpp index 2ab47c2..4977a2a 100644 --- a/src/widgets/BrowserApp.cpp +++ b/src/widgets/BrowserApp.cpp @@ -21,11 +21,11 @@ BrowserApp::BrowserApp() { lua.load_file("./config.lua"); connect(&window_action_router, &WindowActionRouter::new_window_requested, - this, [this](const QUrl &url) { create_window(url.toString()); }); + this, [this](const QUrl &url) { create_window({url.toString()}); }); }; -BrowserWindow *BrowserApp::create_window(const QString &url) { - auto *window = new BrowserWindow((const Configuration &)configuration, url); +BrowserWindow *BrowserApp::create_window(const QStringList &urls) { + auto *window = new BrowserWindow((const Configuration &)configuration, urls); window->setWindowTitle("null-browser"); WindowActionRouter::instance().add_window(window); window->show(); |
