mirror of
https://invent.kde.org/graphics/okular
synced 2024-10-05 15:39:47 +00:00
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:
parent
ff20b1ee86
commit
c6f91f4e51
2
part.cpp
2
part.cpp
|
@ -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() ) );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue