Notify the user of any errors
This commit is contained in:
1 parent
c01678a3fa
commit
5d0868a056
4 files changed
+19
-7
No files matched your search
@@ -140,7 +140,10 @@ void OneSixModEditDialog::on_customEditorBtn_clicked()
|
||||
{
|
||||
if (m_inst->versionIsCustom())
|
||||
{
|
||||
MMC->openJsonEditor(m_inst->instanceRoot() + "/custom.json");
|
||||
if (!MMC->openJsonEditor(m_inst->instanceRoot() + "/custom.json"))
|
||||
{
|
||||
QMessageBox::warning(this, tr("Error"), tr("Unable to open custom.json, check the settings"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user