forked from teamnwah/openmw-tes3coop
Merge remote-tracking branch 'scrawl/opencs-crashfix'
This commit is contained in:
commit
79339ebff1
1 changed files with 3 additions and 1 deletions
|
@ -153,11 +153,13 @@ void CSVDoc::FileDialog::slotUpdateAcceptButton(const QString &name, bool)
|
||||||
|
|
||||||
if (isNew)
|
if (isNew)
|
||||||
success = success && !(name.isEmpty());
|
success = success && !(name.isEmpty());
|
||||||
else
|
else if (success)
|
||||||
{
|
{
|
||||||
ContentSelectorModel::EsmFile *file = mSelector->selectedFiles().back();
|
ContentSelectorModel::EsmFile *file = mSelector->selectedFiles().back();
|
||||||
mAdjusterWidget->setName (file->filePath(), !file->isGameFile());
|
mAdjusterWidget->setName (file->filePath(), !file->isGameFile());
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
mAdjusterWidget->setName ("", true);
|
||||||
|
|
||||||
ui.projectButtonBox->button (QDialogButtonBox::Ok)->setEnabled (success);
|
ui.projectButtonBox->button (QDialogButtonBox::Ok)->setEnabled (success);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue