summaryrefslogtreecommitdiff
path: root/gtk2_ardour/option_editor.h
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2015-03-09 15:54:59 +0000
committerJohn Emmas <johne53@tiscali.co.uk>2015-03-09 15:57:15 +0000
commite243d328a4ba9c425341596888c19449785e3d3d (patch)
tree993090f9220221d153f4e943e18aeb60b3c5d7c8 /gtk2_ardour/option_editor.h
parent4d66c6c1abd63bddd993362001c2f16a740f9361 (diff)
Fix a couple of issues when displaying the 'Preferences' dialog on Windows:-
1) When changing the 'Default folder for new sessions' we weren't responding to the appropriate signal (so the change wasn't getting saved in our user's 'config' file). We now respond to the 'selection-changed' signal. 2) If the above path happened to contain a tilde character we weren't interpreting it to mean the user's home folder. I've copied across a function called 'poor_mans_glob()' which Ardour uses elsewhere for dealing with this situation in other file dialogs. Once we confirm that issue #2 is now working for all platforms, I'd suggest moving 'poor_mans_glob()' into libpbd. At the moment we have at least 3 definitions of it (all identical) scattered around in various places.
Diffstat (limited to 'gtk2_ardour/option_editor.h')
-rw-r--r--gtk2_ardour/option_editor.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/option_editor.h b/gtk2_ardour/option_editor.h
index ac768383ee..9ab8132d2c 100644
--- a/gtk2_ardour/option_editor.h
+++ b/gtk2_ardour/option_editor.h
@@ -624,7 +624,7 @@ public:
Gtk::Widget& tip_widget() { return _file_chooser; }
private:
- void file_set ();
+ void selection_changed ();
void current_folder_set ();
sigc::slot<std::string> _get; ///< slot to get the configuration variable's value