Check TreeItem for nullptr before accessing.
This commit is contained in:
parent
4ba934bf3d
commit
badea350ac
1 changed files with 4 additions and 0 deletions
|
@ -552,6 +552,10 @@ void EditorSettingsDialog::_shortcut_cell_double_clicked() {
|
|||
const ShortcutButton edit_btn_id = EditorSettingsDialog::SHORTCUT_EDIT;
|
||||
const int edit_btn_col = 1;
|
||||
TreeItem *ti = shortcuts->get_selected();
|
||||
if (ti == nullptr) {
|
||||
return;
|
||||
}
|
||||
|
||||
String type = ti->get_meta("type");
|
||||
int col = shortcuts->get_selected_column();
|
||||
if (type == "shortcut" && col == 0) {
|
||||
|
|
Loading…
Reference in a new issue