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

List:       kde-commits
Subject:    [kdepim-addons/Applications/17.08] plugins/messageviewer/bodypartformatter/vcard: Don't ask twice wh
From:       Montel Laurent <null () kde ! org>
Date:       2017-08-12 6:27:41
Message-ID: E1dgPtd-0003l2-36 () code ! kde ! org
[Download RAW message or body]

Git commit f84abfbc6ffa73bd29486422c2382d10277166f2 by Montel Laurent.
Committed on 12/08/2017 at 06:27.
Pushed by mlaurent into branch 'Applications/17.08'.

Don't ask twice when we want to overwrite file

M  +1    -6    plugins/messageviewer/bodypartformatter/vcard/text_vcard.cpp

https://commits.kde.org/kdepim-addons/f84abfbc6ffa73bd29486422c2382d10277166f2

diff --git a/plugins/messageviewer/bodypartformatter/vcard/text_vcard.cpp \
b/plugins/messageviewer/bodypartformatter/vcard/text_vcard.cpp index \
                f95efa88..55ef1a74 100644
--- a/plugins/messageviewer/bodypartformatter/vcard/text_vcard.cpp
+++ b/plugins/messageviewer/bodypartformatter/vcard/text_vcard.cpp
@@ -285,12 +285,7 @@ public:
         // get the saveas file name
         QUrl saveAsUrl
             = QFileDialog::getSaveFileUrl(nullptr, i18n("Save Business Card"), \
                QUrl::fromUserInput(fileName));
-        if (saveAsUrl.isEmpty()
-            || (QFileInfo::exists(saveAsUrl.path())
-                && (KMessageBox::warningYesNo(
-                        nullptr,
-                        i18n("%1 already exists. Do you want to overwrite it?",
-                             saveAsUrl.path())) == KMessageBox::No))) {
+        if (saveAsUrl.isEmpty()) {
             return false;
         }
 


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

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