From 74c1e926405f7895d3071bff6484e1fb0ff89277 Mon Sep 17 00:00:00 2001 From: spycrab Date: Sat, 30 Mar 2019 20:32:07 +0100 Subject: [PATCH] Qt/GameConfigEdit: Show warning if opening in an external editor fails --- Source/Core/DolphinQt/Config/GameConfigEdit.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/Config/GameConfigEdit.cpp b/Source/Core/DolphinQt/Config/GameConfigEdit.cpp index 705f3c6acc..9598abb5c1 100644 --- a/Source/Core/DolphinQt/Config/GameConfigEdit.cpp +++ b/Source/Core/DolphinQt/Config/GameConfigEdit.cpp @@ -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)