diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-09-04 00:59:18 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-09-04 00:59:18 +0200 |
commit | 04ff4c9fd994ca31289b416c693cf96ec51a5e81 (patch) | |
tree | 83ddb9ce04c39ca9a8c5376849865a043be7ce9c | |
parent | Open in new Window Action (diff) | |
download | rekonq-04ff4c9fd994ca31289b416c693cf96ec51a5e81.tar.xz |
fixing new window action
-rw-r--r-- | src/mainwindow.cpp | 1 | ||||
-rw-r--r-- | src/webview.cpp | 8 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index ff4bc816..f55fa0a3 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -251,7 +251,6 @@ void MainWindow::setupActions() // Standard Actions KStandardAction::open(this, SLOT(slotFileOpen()), actionCollection()); - KStandardAction::openNew(Application::instance(), SLOT(newMainWindow()), actionCollection()); KStandardAction::saveAs(this, SLOT(slotFileSaveAs()), actionCollection()); KStandardAction::print(this, SLOT(printRequested()), actionCollection()); KStandardAction::quit(this , SLOT(close()), actionCollection()); diff --git a/src/webview.cpp b/src/webview.cpp index 19c5e421..a3458fc5 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -115,13 +115,13 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) { // link actions a = pageAction(QWebPage::OpenLinkInNewWindow); - a->setText(i18n("Open Link in New &Tab")); + a->setText(i18n("Open in New &Tab")); a->setIcon(KIcon("tab-new")); menu.addAction(a); - a = new KAction(KIcon("window-new"), i18n("Open Link in New &Window"), this); - a->setData( result.linkUrl() ); - connect(a, SIGNAL( triggered(bool) ), this, SLOT( openLinkInNewWindow() ) ); + a = new KAction(KIcon("window-new"), i18n("Open in New &Window"), this); + a->setData(result.linkUrl()); + connect(a, SIGNAL(triggered(bool)), this, SLOT(openLinkInNewWindow())); menu.addAction(a); a = pageAction(QWebPage::DownloadLinkToDisk); |