mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-16 08:42:23 +00:00
Merge remote-tracking branch 'cc9cii/editor-gamefiles'
This commit is contained in:
commit
928bb234ce
@ -147,7 +147,7 @@ void CSVDoc::FileDialog::slotUpdateAcceptButton(int)
|
|||||||
|
|
||||||
void CSVDoc::FileDialog::slotUpdateAcceptButton(const QString &name, bool)
|
void CSVDoc::FileDialog::slotUpdateAcceptButton(const QString &name, bool)
|
||||||
{
|
{
|
||||||
bool success = (mSelector->selectedFiles().size() > 0);
|
bool success = !mSelector->selectedFiles().empty();
|
||||||
|
|
||||||
bool isNew = (mAction == ContentAction_New);
|
bool isNew = (mAction == ContentAction_New);
|
||||||
|
|
||||||
|
@ -110,9 +110,9 @@ Qt::ItemFlags ContentSelectorModel::ContentModel::flags(const QModelIndex &index
|
|||||||
if (!file)
|
if (!file)
|
||||||
return Qt::NoItemFlags;
|
return Qt::NoItemFlags;
|
||||||
|
|
||||||
//game files are not shown
|
//game files can always be checked
|
||||||
if (file->isGameFile())
|
if (file->isGameFile())
|
||||||
return Qt::NoItemFlags;
|
return Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsUserCheckable;
|
||||||
|
|
||||||
Qt::ItemFlags returnFlags;
|
Qt::ItemFlags returnFlags;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user