[Okular-devel] [okular] [Bug 339807] Save in FTP Folder reports existing File although there isn't

Albert Astals Cid aacid at kde.org
Thu Oct 9 19:51:03 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=339807

Albert Astals Cid <aacid at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aacid at kde.org,
                   |                            |faure at kde.org

--- Comment #1 from Albert Astals Cid <aacid at kde.org> ---
I'm pretty sure that this is a KIO problem, i've talked with David before about
this and he said that it happens because the ftp ioslave defaults to "yes a
file exists" when asked if it does because some servers are just plain stupid.

I'm CC'ing him in case we do something wrong.

David, what we do is just
KUrl saveUrl = KFileDialog::getSaveUrl( KUrl("kfiledialog:///okular/" +
url().fileName()),
                                            QString(), widget(), QString(),
                                            KFileDialog::ConfirmOverwrite )

and then

KIO::file_copy( srcUrl, saveUrl, -1, KIO::Overwrite );

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Okular-devel mailing list