From e30f9f58d5c2df9d02ae83f8ae2f5faee6f04814 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 5 Mar 2012 23:09:25 +0100 Subject: Don't show dots after "Save Link" text if we are not going to ask for download path CCBUG: 295295 --- src/webview.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') 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)); } -- cgit v1.2.1