diff options
-rw-r--r-- | src/webwindow/webwindow.cpp | 9 | ||||
-rw-r--r-- | src/webwindow/webwindow.h | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp index 1ab177ba..4c8f9dae 100644 --- a/src/webwindow/webwindow.cpp +++ b/src/webwindow/webwindow.cpp @@ -196,7 +196,7 @@ void WebWindow::setupActions() a = new KAction(KIcon("window-new"), i18n("&New Window"), this); a->setShortcut(KShortcut(Qt::CTRL | Qt::Key_N)); actionCollection()->addAction(QL1S("new_window"), a); - connect(a, SIGNAL(triggered(bool)), rApp, SLOT(newTabWindow())); + connect(a, SIGNAL(triggered(bool)), this, SLOT(openNewWindow())); // Standard Actions KStandardAction::open(this, SLOT(fileOpen()), actionCollection()); @@ -878,3 +878,10 @@ void WebWindow::showCrashMessageBar() { _tab->showCrashMessageBar(); } + + +void WebWindow::openNewWindow() +{ + rApp->loadUrl(QUrl("about:home"), Rekonq::NewWindow); +} + diff --git a/src/webwindow/webwindow.h b/src/webwindow/webwindow.h index b39df0ab..39643714 100644 --- a/src/webwindow/webwindow.h +++ b/src/webwindow/webwindow.h @@ -109,6 +109,8 @@ private Q_SLOTS: void openNext(Qt::MouseButtons = Qt::LeftButton, Qt::KeyboardModifiers = Qt::NoModifier); void updateHistoryActions(); + void openNewWindow(); + /** * Notifies a message in a popup */ |