[Okular-devel] Review Request 110419: Set "Save As" default filename point to where the file was opened from
Fabio D'Urso
fabiodurso at hotmail.it
Mon May 13 19:49:56 UTC 2013
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/110419/
-----------------------------------------------------------
Review request for Okular.
Description
-------
Very simple patch that sets default Save As path the same as the path the document has been opened from.
I've used katepart as reference:
https://projects.kde.org/projects/kde/applications/kate/repository/revisions/fbeecb7384e3c3986e8fbafa1123aa422d97e537/entry/part/document/katedocument.cpp#L3832
Note that this patch does *not* affect Save Copy As.
This addresses bug 319042.
http://bugs.kde.org/show_bug.cgi?id=319042
Diffs
-----
part.cpp eae6a2f
Diff: http://git.reviewboard.kde.org/r/110419/diff/
Testing
-------
I've verified that "Save As" now behaves the same as katepart/kwrite. I've only found a difference in stdin handling.
$ okular, then open local file from Open menu
Defaults to the same path as expected. Obviously same behavior as kwrite.
$ okular, then open remote HTTP file from Open menu
Defaults to the same path, shows a HTTP folder. It's the same behavior as kwrite.
$ okular /path/to/local/file
Defaults to the same path as expected. Obviously same behavior as kwrite.
$ okular http://remote/file
Defaults to local file with the same name. Same behavior as kwrite.
$ cat /path/to/local/file | okular -
Defaults to "-". Note that "kwrite -stdin", instead, shows no default name in this case.
Bookmarks:
I've tested opening bookmarks from local files and it defaulted to the bookmarked path as expected.
Opening HTTP bookmarks didn't work (seems we store a wrong URL, but it's not related to this patch)
okularpart embedded in konqueror:
Defaults to local file with the same name. Same behavior as katepart embedded in konqueror.
Thanks,
Fabio D'Urso
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/okular-devel/attachments/20130513/eb89c7dd/attachment-0001.html>
More information about the Okular-devel
mailing list