Backport: Use the local file path, so remote URLs are not downloaded again. (For local files there is no change.)

svn path=/branches/KDE/4.0/kdegraphics/okular/; revision=761847
remotes/origin/KDE/4.0
Pino Toscano 18 years ago
parent fa669c6d15
commit 708df559eb
  1. 2
      part.cpp

@ -1222,7 +1222,7 @@ void Part::slotSaveFileAs()
return;
}
KIO::Job *copyJob = KIO::file_copy( url(), saveUrl, -1, KIO::Overwrite );
KIO::Job *copyJob = KIO::file_copy( localFilePath(), saveUrl, -1, KIO::Overwrite );
if ( !KIO::NetAccess::synchronousRun( copyJob, widget() ) )
KMessageBox::information( widget(), i18n("File could not be saved in '%1'. Try to save it to another location.", saveUrl.prettyUrl() ) );
}

Loading…
Cancel
Save