Separate is an Editor action (like Delete), not a Region action.
[ardour.git] / gtk2_ardour / option_editor.cc
index 694cf84018044652c68e5f1ecfa9dada818e083a..64c867970ee55d54fec67a2ffaa3f174049bf6dc 100644 (file)
@@ -428,7 +428,7 @@ ClockOption::set_state_from_config ()
        if (!Timecode::parse_timecode_format(_get(), TC)) {
                _clock.set (0, true);
        }
-       TC.rate = _session->frames_per_timecode_frame();
+       TC.rate = _session->samples_per_timecode_frame();
        TC.drop = _session->timecode_drop_frames();
        _session->timecode_to_sample(TC, when, false, false);
        if (TC.negative) { when=-when; }
@@ -524,11 +524,13 @@ OptionEditor::treeview_row_selected ()
 {
        Glib::RefPtr<Gtk::TreeSelection> selection = option_treeview.get_selection();
        TreeModel::iterator iter = selection->get_selected();
-       if(iter) {
+
+       if (iter) {
                TreeModel::Row row = *iter;
                Gtk::Widget* w = row[option_columns.widget];
                if (w) {
                        _notebook.set_current_page (_notebook.page_num (*w));
+                       cerr << "OE: set current page to " << _notebook.page_num (*w) << endl;
                }
        }
 }