diff --git a/Source/Core/DolphinQt/Config/GameConfigEdit.cpp b/Source/Core/DolphinQt/Config/GameConfigEdit.cpp index 9337c9b9d5..3d0474a02f 100644 --- a/Source/Core/DolphinQt/Config/GameConfigEdit.cpp +++ b/Source/Core/DolphinQt/Config/GameConfigEdit.cpp @@ -121,11 +121,14 @@ void GameConfigEdit::SaveFile() QFile file(m_path); if (!file.open(QIODevice::WriteOnly | QIODevice::Truncate | QIODevice::Text)) + { + QMessageBox::warning(this, tr("Warning"), tr("Failed to open config file!")); return; + } const QByteArray contents = m_edit->toPlainText().toUtf8(); - if (!file.write(contents)) + if (file.write(contents) == -1) QMessageBox::warning(this, tr("Warning"), tr("Failed to write config file!")); }