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

svn path=/trunk/KDE/kdegraphics/okular/; revision=761845
This commit is contained in:
Pino Toscano 2008-01-15 12:49:36 +00:00
parent ff20b1ee86
commit c6f91f4e51

View file

@ -1223,7 +1223,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() ) );
}