mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 08:42:23 +00:00
Merge remote-tracking branch 'scrawl/opencs-crashfix'
This commit is contained in:
commit
79339ebff1
@ -153,11 +153,13 @@ void CSVDoc::FileDialog::slotUpdateAcceptButton(const QString &name, bool)
|
||||
|
||||
if (isNew)
|
||||
success = success && !(name.isEmpty());
|
||||
else
|
||||
else if (success)
|
||||
{
|
||||
ContentSelectorModel::EsmFile *file = mSelector->selectedFiles().back();
|
||||
mAdjusterWidget->setName (file->filePath(), !file->isGameFile());
|
||||
}
|
||||
else
|
||||
mAdjusterWidget->setName ("", true);
|
||||
|
||||
ui.projectButtonBox->button (QDialogButtonBox::Ok)->setEnabled (success);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user