summaryrefslogtreecommitdiff
path: root/src/webview.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-01-02 16:23:45 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-01-02 16:23:45 +0100
commite3b6aeb3a63e3e12f121e29dacc3ac3ce268dedd (patch)
tree9af8db780eacf26d0c73f9c0fd28f925ac5fe8c5 /src/webview.cpp
parentGet sure tabbar is properly shown (diff)
downloadrekonq-e3b6aeb3a63e3e12f121e29dacc3ac3ce268dedd.tar.xz
Fix "share" action
Diffstat (limited to 'src/webview.cpp')
-rw-r--r--src/webview.cpp6
1 files changed, 5 insertions, 1 deletions
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 <adjam7 at gmail dot com>
+* Copyright (C) 2008-2012 by Andrea Diamantini <adjam7 at gmail dot com>
* Copyright (C) 2009-2011 by Lionel Chauvin <megabigbug@yahoo.fr>
*
*
@@ -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