mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-07 04:45:38 +00:00
Hide things that depend on present-but-inactive game files
https://gitlab.com/OpenMW/openmw/-/merge_requests/3925#note_1843962919
This commit is contained in:
parent
f8224b29d4
commit
48f1f08537
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ Qt::ItemFlags ContentSelectorModel::ContentModel::flags(const QModelIndex& index
|
||||||
return Qt::NoItemFlags;
|
return Qt::NoItemFlags;
|
||||||
|
|
||||||
if (file->builtIn() || file->fromAnotherConfigFile())
|
if (file->builtIn() || file->fromAnotherConfigFile())
|
||||||
return Qt::NoItemFlags;
|
return Qt::ItemIsEnabled;
|
||||||
|
|
||||||
// game files can always be checked
|
// game files can always be checked
|
||||||
if (file == mGameFile)
|
if (file == mGameFile)
|
||||||
|
@ -228,7 +228,7 @@ QVariant ContentSelectorModel::ContentModel::data(const QModelIndex& index, int
|
||||||
{
|
{
|
||||||
if (file == mGameFile)
|
if (file == mGameFile)
|
||||||
return ContentType_GameFile;
|
return ContentType_GameFile;
|
||||||
else
|
else if (flags(index))
|
||||||
return ContentType_Addon;
|
return ContentType_Addon;
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue