From e3b6aeb3a63e3e12f121e29dacc3ac3ce268dedd Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 2 Jan 2012 16:23:45 +0100 Subject: Fix "share" action --- src/webview.cpp | 6 +++++- src/webview.h | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/webview.cpp b/src/webview.cpp index 8753b7ec..28285a04 100644 --- a/src/webview.cpp +++ b/src/webview.cpp @@ -2,7 +2,7 @@ * * This file is a part of the rekonq project * -* Copyright (C) 2008-2011 by Andrea Diamantini +* Copyright (C) 2008-2012 by Andrea Diamantini * Copyright (C) 2009-2011 by Lionel Chauvin * * @@ -274,6 +274,10 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) // ACTIONS FOR TEXT SELECTION ----------------------------------------------------------------- if (resultHit & WebView::TextSelection) { + // send by mail: text + sendByMailAction->setData(selectedText()); + sendByMailAction->setText(i18n("Share selected text")); + if (result.isContentEditable()) { // actions for text selected in field diff --git a/src/webview.h b/src/webview.h index 7ab3acfa..eabe10a0 100644 --- a/src/webview.h +++ b/src/webview.h @@ -2,7 +2,7 @@ * * This file is a part of the rekonq project * -* Copyright (C) 2008-2011 by Andrea Diamantini +* Copyright (C) 2008-2012 by Andrea Diamantini * Copyright (C) 2009-2011 by Lionel Chauvin * * -- cgit v1.2.1