It would be nice if the file dialog could remember the current dialog instead of returning to the users home directory. The extra clicking required is a little bit annoying when adding samples to different groups for instance.
Here are diffs against the CVS version of gigedit that solve this issue. The diffs also rename "current_dir" to "current_gig_dir" for clarity. src/gigedit/mainwindow.cpp diff: 627,628c627,628 < if (current_dir != "") { < dialog.set_current_folder(current_dir); --- > if (current_gig_dir != "") { > dialog.set_current_folder(current_gig_dir); 635c635 < current_dir = Glib::path_get_dirname(filename); --- > current_gig_dir = Glib::path_get_dirname(filename); 766c766 < if (current_dir != "") dialog.set_current_folder(current_dir); --- > if (current_gig_dir != "") dialog.set_current_folder(current_gig_dir); 802c802 < current_dir = Glib::path_get_dirname(filename); --- > current_gig_dir = Glib::path_get_dirname(filename); 1417a1418,1420 > if (current_sample_dir != "") { > dialog.set_current_folder(current_sample_dir); > } 1418a1422 > current_sample_dir = dialog.get_current_folder(); 1567a1572,1574 > if (current_sample_dir != "") { > dialog.set_current_folder(current_sample_dir); > } 1578a1586 > current_sample_dir = dialog.get_current_folder(); src/gigedit/mainwindow.h diff: 354c354,355 < std::string current_dir; --- > std::string current_gig_dir; > std::string current_sample_dir;
Created attachment 24 [details] mainwindow.cpp diff Posting patch properly ...
Created attachment 25 [details] mainwindow.h diff
Thank you! Patch applied.