Preferences: fixed a crash in new hotkey categories
This commit is contained in:
parent
7bf1e33e50
commit
7be3e45472
1 changed files with 1 additions and 1 deletions
|
@ -870,7 +870,7 @@ void tpreferences::initialize_members(twindow& window)
|
|||
// HKCAT_PLACEHOLDER intentionally excluded (it shouldn't have any anyway)
|
||||
};
|
||||
|
||||
for(int i = 0; i <= hotkey::HKCAT_PLACEHOLDER; i++) {
|
||||
for(int i = 0; i < hotkey::HKCAT_PLACEHOLDER; i++) {
|
||||
row_data["cat_label"]["label"] = cat_names[i];
|
||||
hotkey_categories.add_row(row_data);
|
||||
hotkey_categories.select_row(hotkey_categories.get_item_count() - 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue