mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-24 07:27:44 +01:00
[Summary] Adding accuracy to the code: the for loops break having accomplished their missions (finding drop down item to select)
This commit is contained in:
parent
ef1e0b3c46
commit
34a3e8b49c
1 changed files with 2 additions and 0 deletions
|
|
@ -88,6 +88,7 @@ WavesExportFilenameSelector::load_state ()
|
|||
for (int i = 0; i < size; i++) {
|
||||
if (_date_format_dropdown.get_item_associated_data (i) == (void*)filename->get_date_format()) {
|
||||
_date_format_dropdown.set_current_item (i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -95,6 +96,7 @@ WavesExportFilenameSelector::load_state ()
|
|||
for (int i = 0; i < size; i++) {
|
||||
if (_time_format_dropdown.get_item_associated_data (i) == (void*)filename->get_time_format()) {
|
||||
_time_format_dropdown.set_current_item (i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue