mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
Merge pull request #7948 from spycrab/open_failed_warn
Qt/GameConfigEdit: Show warning if opening in an external editor fails
This commit is contained in:
commit
0866ec3fb0
@ -260,7 +260,12 @@ void GameConfigEdit::OpenExternalEditor()
|
|||||||
file.close();
|
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)
|
void GameConfigEdit::keyPressEvent(QKeyEvent* e)
|
||||||
|
Loading…
Reference in New Issue
Block a user