From 70175cc6724e7f84e9ae0ba1d42ce26002a9492b Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sat, 4 Jan 2014 11:01:13 +0100 Subject: Save Action (to re-enable CTRL + S) --- src/webtab/webview.cpp | 2 +- src/webwindow/webwindow.cpp | 4 ++-- src/webwindow/webwindow.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/webtab/webview.cpp b/src/webtab/webview.cpp index f2349c01..6a720654 100644 --- a/src/webtab/webview.cpp +++ b/src/webtab/webview.cpp @@ -373,7 +373,7 @@ void WebView::contextMenuEvent(QContextMenuEvent *event) menu.addAction(pageAction(KWebPage::SelectAll)); if (webwin) - menu.addAction(webwin->actionByName(KStandardAction::name(KStandardAction::SaveAs))); + menu.addAction(webwin->actionByName(KStandardAction::name(KStandardAction::Save))); if (!KStandardDirs::findExe("kget").isNull() && ReKonfig::kgetList()) { diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp index bb857ec4..ee63e4d6 100644 --- a/src/webwindow/webwindow.cpp +++ b/src/webwindow/webwindow.cpp @@ -213,7 +213,7 @@ void WebWindow::setupActions() // Standard Actions KStandardAction::open(this, SLOT(fileOpen()), actionCollection()); - KStandardAction::saveAs(this, SLOT(fileSaveAs()), actionCollection()); + KStandardAction::save(this, SLOT(fileSave()), actionCollection()); KStandardAction::print(_tab, SLOT(printFrame()), actionCollection()); KStandardAction::preferences(this, SLOT(preferences()), actionCollection()); KStandardAction::keyBindings(this, SLOT(keyBindings()), actionCollection()); @@ -755,7 +755,7 @@ void WebWindow::fileOpen() } -void WebWindow::fileSaveAs() +void WebWindow::fileSave() { KUrl srcUrl = url(); diff --git a/src/webwindow/webwindow.h b/src/webwindow/webwindow.h index e7b6a263..0071892a 100644 --- a/src/webwindow/webwindow.h +++ b/src/webwindow/webwindow.h @@ -119,7 +119,7 @@ private Q_SLOTS: // File Menu slots void openLocation(); void fileOpen(); - void fileSaveAs(); + void fileSave(); // bookmarks bar void toggleBookmarksToolbar(bool); -- cgit v1.2.1