summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-03-05 23:09:25 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-03-05 23:09:25 +0100
commite30f9f58d5c2df9d02ae83f8ae2f5faee6f04814 (patch)
tree11b04c48fe436f4b0a5ff267c62d93e07ea19493
parentFix toolbars rekonfig... (diff)
downloadrekonq-e30f9f58d5c2df9d02ae83f8ae2f5faee6f04814.tar.xz
Don't show dots after "Save Link" text if we are not going to ask for
download path CCBUG: 295295
-rw-r--r--src/webview.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/webview.cpp b/src/webview.cpp
index a581664a..019eb42d 100644
--- a/src/webview.cpp
+++ b/src/webview.cpp
@@ -251,7 +251,15 @@ void WebView::contextMenuEvent(QContextMenuEvent *event)
menu.addAction(a);
menu.addSeparator();
- menu.addAction(pageAction(KWebPage::DownloadLinkToDisk));
+
+ // Don't show dots if we are NOT going to ask for download path
+ a = pageAction(KWebPage::DownloadLinkToDisk);
+ if (ReKonfig::askDownloadPath())
+ a->setText(i18n("Save Link..."));
+ else
+ a->setText(i18n("Save Link"));
+
+ menu.addAction(a);
menu.addAction(pageAction(KWebPage::CopyLinkToClipboard));
}