GameConfigEdit: Fix unused-result warning

This commit is contained in:
Joshua Vandaële 2025-10-29 10:42:43 +01:00
parent 2383e68fd8
commit b66b2f71af
No known key found for this signature in database
GPG Key ID: 6BB95AF71EB0F406

View File

@ -257,7 +257,13 @@ void GameConfigEdit::OpenExternalEditor()
if (m_read_only)
return;
file.open(QIODevice::WriteOnly);
if (!file.open(QIODevice::WriteOnly))
{
ModalMessageBox::warning(this, tr("Error"),
tr("Failed to create the configuration file:\n%1").arg(m_path));
return;
}
file.close();
}