944 |
Gtk::MessageDialog msg(*this, txt, false, Gtk::MESSAGE_WARNING); |
Gtk::MessageDialog msg(*this, txt, false, Gtk::MESSAGE_WARNING); |
945 |
msg.run(); |
msg.run(); |
946 |
} |
} |
947 |
|
|
948 |
|
// OK button should have focus by default for quick combining with Return key |
949 |
|
m_OKButton.grab_focus(); |
950 |
} |
} |
951 |
|
|
952 |
void CombineInstrumentsDialog::on_order_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context) |
void CombineInstrumentsDialog::on_order_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context) |
1072 |
if (instrumentIndeces.count(index)) |
if (instrumentIndeces.count(index)) |
1073 |
m_treeView.get_selection()->select(iter); |
m_treeView.get_selection()->select(iter); |
1074 |
} |
} |
1075 |
|
// hack: OK button lost focus after doing the above, it should have focus by default for quick combining with Return key |
1076 |
|
m_OKButton.grab_focus(); |
1077 |
} |
} |
1078 |
|
|
1079 |
void CombineInstrumentsDialog::combineSelectedInstruments() { |
void CombineInstrumentsDialog::combineSelectedInstruments() { |