Make normalize cancel button work.

git-svn-id: svn://localhost/ardour2/branches/3.0@7935 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2010-10-28 17:09:32 +00:00
parent d731e4dba1
commit 6f9e9ad23e
6 changed files with 45 additions and 3 deletions

View file

@ -65,6 +65,8 @@ NormalizeDialog::NormalizeDialog (bool more_than_one)
add_button (Stock::CANCEL, RESPONSE_CANCEL);
add_button (_("Normalize"), RESPONSE_ACCEPT);
signal_response().connect (sigc::mem_fun (*this, &NormalizeDialog::button_clicked));
}
bool
@ -96,3 +98,11 @@ NormalizeDialog::run ()
_last_normalization_value = target ();
return r;
}
void
NormalizeDialog::button_clicked (int r)
{
if (r == RESPONSE_CANCEL) {
cancel ();
}
}