Fix issue #2905 by using the file chooser's selected instead of the current folder.

This commit is contained in:
Adam Reichold 2015-11-12 17:11:56 +01:00
parent 31eef89118
commit 79a1c19c60

View File

@ -333,8 +333,8 @@ void BatchQueuePanel::pathFolderButtonPressed ()
int result = fc.run();
if (result == Gtk::RESPONSE_OK) {
if (safe_file_test(fc.get_current_folder(), Glib::FILE_TEST_IS_DIR)) {
options.savePathFolder = fc.get_current_folder();
if (safe_file_test(fc.get_filename(), Glib::FILE_TEST_IS_DIR)) {
options.savePathFolder = fc.get_filename();
outdirFolderButton->set_label(makeFolderLabel(options.savePathFolder));
}
}