summaryrefslogtreecommitdiff
path: root/src/webwindow
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-10-21 17:44:19 +0200
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:05 +0100
commit7080ecb8a3033ae11e4a4cedc008cbd32bb6bd88 (patch)
tree9c1e7179e8613a4448c7de3e764f9433275104cd /src/webwindow
parentFix new incognito window opening... (diff)
downloadrekonq-7080ecb8a3033ae11e4a4cedc008cbd32bb6bd88.tar.xz
Fix "new window" menu action
Diffstat (limited to 'src/webwindow')
-rw-r--r--src/webwindow/webwindow.cpp9
-rw-r--r--src/webwindow/webwindow.h2
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
*/