mirror of https://github.com/odrling/Aegisub
Fix the Select All button in the import styles dialog
This commit is contained in:
parent
ce358c1367
commit
5e54a342e4
|
@ -25,7 +25,7 @@ int GetSelectedChoices(wxWindow *parent, wxArrayInt& selections, wxString const&
|
||||||
|
|
||||||
auto selAll = new wxButton(&dialog, -1, _("Select &All"));
|
auto selAll = new wxButton(&dialog, -1, _("Select &All"));
|
||||||
selAll->Bind(wxEVT_BUTTON, [&](wxCommandEvent&) {
|
selAll->Bind(wxEVT_BUTTON, [&](wxCommandEvent&) {
|
||||||
wxArrayInt sel(selections.size());
|
wxArrayInt sel(choices.size(), 0);
|
||||||
std::iota(sel.begin(), sel.end(), 0);
|
std::iota(sel.begin(), sel.end(), 0);
|
||||||
dialog.SetSelections(sel);
|
dialog.SetSelections(sel);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue