Skip to content
Permalink
Browse files

Merge pull request #7948 from spycrab/open_failed_warn

Qt/GameConfigEdit: Show warning if opening in an external editor fails
  • Loading branch information...
spycrab committed Mar 31, 2019
2 parents 735a705 + 74c1e92 commit 0866ec3fb0317ce6cc72563cef78a77dbf14e890
Showing with 6 additions and 1 deletion.
  1. +6 −1 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)

0 comments on commit 0866ec3

Please sign in to comment.
You can’t perform that action at this time.