mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 07:06:23 +01:00
[Summary] Fix bug. Allow to add tracks on Enter press. Deleted unnecessary functions.
[Reviewed] VKamyshniy
This commit is contained in:
parent
e2cab0c884
commit
1d17bd3321
3 changed files with 3 additions and 21 deletions
|
|
@ -79,7 +79,7 @@ void
|
|||
AddTracksDialog::on_ok_button (WavesButton*)
|
||||
{
|
||||
hide();
|
||||
response (Gtk::RESPONSE_YES);
|
||||
response (WavesDialog::RESPONSE_DEFAULT);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -157,17 +157,3 @@ AddTracksDialog::setup ()
|
|||
set_track_count(1);
|
||||
_tracks_format_dropdown.set_text(TrackFormat::FormatMono);
|
||||
}
|
||||
|
||||
void
|
||||
AddTracksDialog::on_enter_pressed ()
|
||||
{
|
||||
hide();
|
||||
response (Gtk::RESPONSE_YES);
|
||||
}
|
||||
|
||||
void
|
||||
AddTracksDialog::on_esc_pressed ()
|
||||
{
|
||||
hide();
|
||||
response (Gtk::RESPONSE_CANCEL);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -38,10 +38,6 @@ public:
|
|||
ARDOUR::ChanCount input_channels ();
|
||||
void on_show ();
|
||||
|
||||
protected:
|
||||
void on_enter_pressed ();
|
||||
void on_esc_pressed ();
|
||||
|
||||
private:
|
||||
WavesButton& _decrement_button;
|
||||
WavesButton& _increment_button;
|
||||
|
|
|
|||
|
|
@ -3451,7 +3451,7 @@ ARDOUR_UI::add_route (Gtk::Window* float_window)
|
|||
int r = _add_tracks_dialog->run();
|
||||
|
||||
switch (r) {
|
||||
case Gtk::RESPONSE_YES:
|
||||
case WavesDialog::RESPONSE_DEFAULT:
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue