[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepim/kaddressbook/xxport
From: Laurent Montel <montel () kde ! org>
Date: 2009-04-09 13:16:59
Message-ID: 1239283019.992311.10717.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 951474 by mlaurent:
Backport:
Signal that we will overwrite file
M +5 -0 vcard_xxport.cpp
--- trunk/KDE/kdepim/kaddressbook/xxport/vcard_xxport.cpp #951473:951474
@@ -242,6 +242,11 @@
bool VCardXXPort::doExport( const KUrl &url, const QByteArray &data )
{
+ if( QFileInfo(url.path()).exists() ) {
+ if(KMessageBox::questionYesNo( parentWidget(), i18n("Do you want to overwrite \
file \"%1\"", url.path()) ) == KMessageBox::No) + return false;
+ }
+
KTemporaryFile tmpFile;
tmpFile.open();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic