13
0

Latency dialog is already instant-apply, so remove OK /

Apply buttons which are somewhat misleading.


git-svn-id: svn://localhost/ardour2/branches/3.0@9850 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-07-12 21:12:22 +00:00
parent 34d6518e23
commit ab98398dc2

View File

@ -162,29 +162,11 @@ LatencyDialog::LatencyDialog (const std::string& title, Latent& l, framepos_t sr
: ArdourDialog (title, false, true), : ArdourDialog (title, false, true),
lwidget (l, sr, psz) lwidget (l, sr, psz)
{ {
get_vbox()->pack_start (lwidget); get_vbox()->pack_start (lwidget);
add_button (Stock::CANCEL, RESPONSE_CANCEL); add_button (Stock::CLOSE, RESPONSE_CLOSE);
add_button (Stock::APPLY, RESPONSE_REJECT);
add_button (Stock::OK, RESPONSE_ACCEPT);
show_all (); show_all ();
run ();
while (true) {
int ret = run ();
switch (ret) {
case RESPONSE_ACCEPT:
return;
break;
case RESPONSE_REJECT:
lwidget.finish ();
break;
default:
return;
}
}
} }