~ubuntu-branches/ubuntu/karmic/kdepim/karmic-backports

« back to all changes in this revision

Viewing changes to kaddressbook/xxport/gmx_xxport.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christian Mangold
  • Date: 2009-07-10 06:34:50 UTC
  • mfrom: (1.1.40 upstream)
  • Revision ID: james.westby@ubuntu.com-20090710063450-neojgew2fh0n3y0u
Tags: 4:4.2.96-0ubuntu1
* New upstream release
* Bump kde build-deps to 4.2.96

Show diffs side-by-side

added added

removed removed

Lines of Context:
208
208
  if ( url.isEmpty() )
209
209
      return true;
210
210
 
211
 
  if( QFileInfo(url.path()).exists() ) {
212
 
      if(KMessageBox::questionYesNo( parentWidget(), i18n("Do you want to overwrite file \"%1\"", url.path()) ) == KMessageBox::No)
 
211
  if( QFileInfo( url.isLocalFile() ? url.toLocalFile() : url.path() ).exists() ) {
 
212
      if(KMessageBox::questionYesNo( parentWidget(), i18n("Do you want to overwrite file \"%1\"", url.isLocalFile() ? url.toLocalFile() : url.path()) ) == KMessageBox::No)
213
213
        return false;
214
214
  }
215
215
 
226
226
 
227
227
    return KIO::NetAccess::upload( tmpFile.fileName(), url, parentWidget() );
228
228
  } else {
229
 
    QString filename = url.path();
 
229
    QString filename = url.toLocalFile();
230
230
    QFile file( filename );
231
231
 
232
232
    if ( !file.open( QIODevice::WriteOnly ) ) {