diff options
author | Taybin Rutkin <taybin@taybin.com> | 2005-10-13 03:48:57 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2005-10-13 03:48:57 +0000 |
commit | fe83d9b77e0aff0af45d8c9ef4f1d8187b8f600e (patch) | |
tree | ef1caa64c4aae44d93ac394d0a92179a765edc83 /gtk2_ardour/option_editor.cc | |
parent | 3b91a592be371e25c6c135664ba0af2f484431ab (diff) |
sfdb almost done.
git-svn-id: svn://localhost/trunk/ardour2@60 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/option_editor.cc')
-rw-r--r-- | gtk2_ardour/option_editor.cc | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/gtk2_ardour/option_editor.cc b/gtk2_ardour/option_editor.cc index 92719b9803..cb4488fe03 100644 --- a/gtk2_ardour/option_editor.cc +++ b/gtk2_ardour/option_editor.cc @@ -1291,15 +1291,13 @@ OptionEditor::raid_path_changed () void OptionEditor::click_browse_clicked () { - SoundFileChooser sfdb (_("Choose Click"), false, false); + SoundFileChooser sfdb (_("Choose Click")); int result = sfdb.run (); - if (result != Gtk::RESPONSE_ACCEPT) { - return; + if (result == Gtk::RESPONSE_OK) { + click_chosen(sfdb.get_filename()); } - - click_chosen(sfdb.get_filename()); } void @@ -1312,15 +1310,13 @@ OptionEditor::click_chosen (string path) void OptionEditor::click_emphasis_browse_clicked () { - SoundFileChooser sfdb (_("Click Emphasis"), false, false); + SoundFileChooser sfdb (_("Choose Click Emphasis")); int result = sfdb.run (); - if (result != Gtk::RESPONSE_ACCEPT) { - return; + if (result == Gtk::RESPONSE_OK) { + click_emphasis_chosen (sfdb.get_filename()); } - - click_emphasis_chosen (sfdb.get_filename()); } void |