diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-01-02 16:23:45 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-01-02 16:23:45 +0100 |
commit | e3b6aeb3a63e3e12f121e29dacc3ac3ce268dedd (patch) | |
tree | 9af8db780eacf26d0c73f9c0fd28f925ac5fe8c5 | |
parent | Get sure tabbar is properly shown (diff) | |
download | rekonq-e3b6aeb3a63e3e12f121e29dacc3ac3ce268dedd.tar.xz |
Fix "share" action
-rw-r--r-- | src/webview.cpp | 6 | ||||
-rw-r--r-- | src/webview.h | 2 |
2 files changed, 6 insertions, 2 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 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 <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> * * |