diff options
author | Robin Gareus <robin@gareus.org> | 2015-03-23 15:36:15 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-03-23 15:36:15 +0100 |
commit | 65731eaa5c8ed54e98c464c934ad512cca37d017 (patch) | |
tree | 4736e4c4b9593297d001b88bc040c3d51ef497bd | |
parent | fb015b1be9d929d7dce18fdb6a033c8afad565c0 (diff) |
work around gtk filechooser bug.
-rw-r--r-- | gtk2_ardour/startup.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/gtk2_ardour/startup.cc b/gtk2_ardour/startup.cc index 4410410ef8..f559e3d90c 100644 --- a/gtk2_ardour/startup.cc +++ b/gtk2_ardour/startup.cc @@ -397,6 +397,14 @@ ArdourStartup::on_delete_event (GdkEventAny*) void ArdourStartup::on_apply () { + /* file-chooser button does not emit 'current_folder_changed' signal + * when a folder from the dropdown or the sidebar is chosen. + * -> explicitly poll for the dir as suggested by the gtk documentation. + */ + if (default_dir_chooser && default_dir_chooser->get_filename() != Config->get_default_session_parent_dir ()) { + config_modified = true; + } + if (config_modified) { if (default_dir_chooser) { @@ -433,6 +441,3 @@ ArdourStartup::move_along_now () { on_apply (); } - - - |