diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2013-12-30 14:45:59 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2013-12-30 14:45:59 +0100 |
commit | 5d0868a056e3de295deaa94717b4023d07772c54 (patch) | |
tree | c546862b4f0c2aa16c68c9c1d4d1d99932712b4f /MultiMC.cpp | |
parent | c01678a3fa328e2f7b8f33bfe54733820802f7b7 (diff) | |
download | MultiMC-5d0868a056e3de295deaa94717b4023d07772c54.tar MultiMC-5d0868a056e3de295deaa94717b4023d07772c54.tar.gz MultiMC-5d0868a056e3de295deaa94717b4023d07772c54.tar.lz MultiMC-5d0868a056e3de295deaa94717b4023d07772c54.tar.xz MultiMC-5d0868a056e3de295deaa94717b4023d07772c54.zip |
Notify the user of any errors
Diffstat (limited to 'MultiMC.cpp')
-rw-r--r-- | MultiMC.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/MultiMC.cpp b/MultiMC.cpp index 24cdd077..865d0cf1 100644 --- a/MultiMC.cpp +++ b/MultiMC.cpp @@ -554,17 +554,17 @@ QString MultiMC::getExitUpdatePath() const return m_updateOnExitPath; } -void MultiMC::openJsonEditor(const QString &filename) +bool MultiMC::openJsonEditor(const QString &filename) { const QString file = QDir::current().absoluteFilePath(filename); if (m_settings->get("JsonEditor").toString().isEmpty()) { - QDesktopServices::openUrl(QUrl::fromLocalFile(file)); + return QDesktopServices::openUrl(QUrl::fromLocalFile(file)); } else { - QProcess::startDetached(m_settings->get("JsonEditor").toString(), - QStringList() << file); + return QProcess::startDetached(m_settings->get("JsonEditor").toString(), + QStringList() << file); } } |