SaveDataDialog: fix possible null access (#2947)

This commit is contained in:
Vinicius Rangel 2025-05-17 10:41:16 -03:00 committed by GitHub
parent e2513d50be
commit 5f447a815e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,7 +155,7 @@ SaveDialogState::SaveDialogState(const OrbisSaveDataDialogParam& param) {
if (item->focusPos != FocusPos::DIRNAME) {
this->focus_pos = item->focusPos;
} else {
} else if (item->focusPosDirName != nullptr) {
this->focus_pos = item->focusPosDirName->data.to_string();
}
this->style = item->itemStyle;