From cd0f7e0a883472b3183320b43bab0e04c07d4aaf Mon Sep 17 00:00:00 2001 From: megabigbug Date: Sat, 17 Oct 2009 14:04:09 +0200 Subject: reintroduce and fix recently closed tab feature --- src/webview.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/webview.cpp') diff --git a/src/webview.cpp b/src/webview.cpp index 9e06c9da..de755bfa 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -64,6 +64,7 @@ WebView::WebView(QWidget* parent) connect(page(), SIGNAL(statusBarMessage(const QString&)), this, SLOT(setStatusBarText(const QString&))); connect(this, SIGNAL(loadProgress(int)), this, SLOT(slotUpdateProgress(int))); connect(this, SIGNAL(loadFinished(bool)), this, SLOT(slotLoadFinished(bool))); + connect(this, SIGNAL(selectionChanged()), this, SLOT(selectionChanged())); } @@ -196,12 +197,12 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) } } } - + if (!searchMenu->menu()->isEmpty()) { menu.addAction(searchMenu); } - + menu.addSeparator(); // TODO Add translate, show translation } @@ -395,7 +396,7 @@ void WebView::viewImage(Qt::MouseButtons buttons, Qt::KeyboardModifiers modifier { KAction *a = qobject_cast(sender()); KUrl url(a->data().toUrl()); - + if (modifiers & Qt::ControlModifier || buttons == Qt::MidButton) { Application::instance()->loadUrl(url, Rekonq::SettingOpenTab); @@ -433,3 +434,4 @@ void WebView::keyPressEvent(QKeyEvent *event) } QWebView::keyPressEvent(event); } + -- cgit v1.2.1