mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
Qt/GameConfigEdit: Show warning if opening in an external editor fails
This commit is contained in:
parent
0bce1c509d
commit
74c1e92640
1 changed files with 6 additions and 1 deletions
|
@ -260,7 +260,12 @@ void GameConfigEdit::OpenExternalEditor()
|
|||
file.close();
|
||||
}
|
||||
|
||||
QDesktopServices::openUrl(QUrl::fromLocalFile(m_path));
|
||||
if (!QDesktopServices::openUrl(QUrl::fromLocalFile(m_path)))
|
||||
{
|
||||
ModalMessageBox::warning(this, tr("Error"),
|
||||
tr("Failed to open file in external editor.\nMake sure there's an "
|
||||
"application assigned to open INI files."));
|
||||
}
|
||||
}
|
||||
|
||||
void GameConfigEdit::keyPressEvent(QKeyEvent* e)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue