From 04ff4c9fd994ca31289b416c693cf96ec51a5e81 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 4 Sep 2009 00:59:18 +0200 Subject: fixing new window action --- src/mainwindow.cpp | 1 - src/webview.cpp | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src') 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); -- cgit v1.2.1