mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
GameConfigEdit: Fix unused-result warning
This commit is contained in:
parent
2383e68fd8
commit
b66b2f71af
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user