[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [rocs/Applications/16.12] src/ui: Use KStandardGuiItem::overwrite()
From:       Pino Toscano <pino () kde ! org>
Date:       2016-12-04 13:35:40
Message-ID: E1cDWxA-0005h9-Pw () code ! kde ! org
[Download RAW message or body]

Git commit c48f33e5350c7ac8899ec76503c71d15a8bc5302 by Pino Toscano.
Committed on 04/12/2016 at 13:35.
Pushed by pino into branch 'Applications/16.12'.

Use KStandardGuiItem::overwrite()

... instead of creating the KGuiItem from scratch

M  +1    -1    src/ui/fileformatdialog.cpp

https://commits.kde.org/rocs/c48f33e5350c7ac8899ec76503c71d15a8bc5302

diff --git a/src/ui/fileformatdialog.cpp b/src/ui/fileformatdialog.cpp
index 05b28d7..7a66cf2 100644
--- a/src/ui/fileformatdialog.cpp
+++ b/src/ui/fileformatdialog.cpp
@@ -78,7 +78,7 @@ bool FileFormatDialog::exportFile(GraphDocumentPtr document) const
                 "<p>The file <br /><strong>'%1'</strong><br /> already exists; if you "
                 "do not want to overwrite it, change the file name to "
                 "something else.</p>", file.toDisplayString()),
-            i18n("File Exists"), KGuiItem(i18n("Overwrite") ))
+            i18n("File Exists"), KStandardGuiItem::overwrite())
             == KMessageBox::Cancel ) {
             return false;
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic