Fixed saving remote files to disk. Added two more items in todo (not merge

blocking after all.. not bad thus).

svn path=/branches/kpdf_experiments/kdegraphics/kpdf/; revision=360586
This commit is contained in:
Enrico Ros 2004-11-05 01:52:48 +00:00
parent dfcb9b7947
commit 0f7917bf94
2 changed files with 8 additions and 5 deletions

View file

@ -31,6 +31,8 @@ More items (first items will enter 'In progress list' first):
-> implement history (mainly for actionNamed)
-> history as a toolbox child (collecting DOs's setPage calls)
-> zoom: fit text (with configurable margin)
-> find: scroll page if the the searched string is not visible
-> open gzipped (.pdf.gz?) files
-> autodetect "/dev/speech" and provide {document/page/selection} -> reading
-> automatic online dictionaries / translators (BR80338)
-> add OCR for building TextPages out of pure graphical (aka scanned) pages

View file

@ -345,11 +345,12 @@ void Part::slotFindNext()
void Part::slotSaveFileAs()
{
KURL saveURL = KFileDialog::getSaveURL(
url().isLocalFile() ? url().url() : url().fileName(),
QString::null, widget(), QString::null );
if( !KIO::NetAccess::upload( url().path(), saveURL, static_cast<QWidget*>( 0 ) ) )
KMessageBox::information( 0, i18n("File could not be saved in '%1'. Try to save it to another location.").arg( url().path() ) );
KURL saveURL = KFileDialog::getSaveURL( url().isLocalFile() ? url().url() : url().fileName(), QString::null, widget() );
if ( saveURL.isValid() && !saveURL.isEmpty() )
{
if ( !KIO::NetAccess::file_copy( url(), saveURL, -1, true ) )
KMessageBox::information( 0, i18n("File could not be saved in '%1'. Try to save it to another location.").arg( saveURL.prettyURL() ) );
}
}
void Part::slotPreferences()