Set default path of "Copy/Move/Link To" dialog to current folder
ClosedPublic

Authored by muhlenpfordt on Mar 13 2018, 10:25 AM.

Details

Summary

D8785 introduced QStandardPaths::PicturesLocation as default
location for Copy/Move/Link To dialog.
This patch sets the starting folder to the current folder (where
the source image(s) resist). It also provides an easier handling
of switching off the history option in D11263.

CCBUG: 391527

Test Plan
  • Clear LastTargetDir config entry (e.g. remove ~/.config/gwenviewrc)
  • Start Gwenview
  • Select one or more images and press F7 to copy
  • Dialog should start in current folder

Diff Detail

Repository
R260 Gwenview
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
muhlenpfordt requested review of this revision.Mar 13 2018, 10:25 AM
muhlenpfordt created this revision.
muhlenpfordt added inline comments.
app/fileoperations.cpp
99–105

Operating with multiple files leads to wrong starting folder if QUrl() is used with setDirectoryUrl().

rkflx accepted this revision.Mar 13 2018, 8:29 PM
This revision is now accepted and ready to land.Mar 13 2018, 8:29 PM
This revision was automatically updated to reflect the committed changes.