Skip to content

Commit

Permalink
Remember the appropriate previous directory when opening a select fol…
Browse files Browse the repository at this point in the history
…der dialog.

BUG=72579
TEST=manual testing, trybots

Review URL: http://codereview.chromium.org/6487001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75396 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
dmazzoni@chromium.org committed Feb 18, 2011
1 parent 4c8d85b commit 58700df
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions chrome/browser/ui/gtk/dialogs_gtk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,8 @@ void SelectFileDialogImpl::FileSelected(GtkWidget* dialog,
const FilePath& path) {
if (type_ == SELECT_SAVEAS_FILE)
*last_saved_path_ = path.DirName();
else if (type_ == SELECT_OPEN_FILE)
else if (type_ == SELECT_OPEN_FILE || type_ == SELECT_FOLDER)
*last_opened_path_ = path.DirName();
else if (type_ == SELECT_FOLDER)
*last_opened_path_ = path.DirName().DirName();
else
NOTREACHED();

Expand Down

0 comments on commit 58700df

Please sign in to comment.