mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-16 08:27:01 +00:00
Fixed table view updating to properly show changes after moving resources/directories
This commit is contained in:
@@ -159,7 +159,7 @@ bool CResourceStore::SaveDatabaseCache()
|
||||
|
||||
void CResourceStore::ConditionalSaveStore()
|
||||
{
|
||||
if (mDatabaseCacheDirty) SaveDatabaseCache();
|
||||
if (mDatabaseCacheDirty) SaveDatabaseCache();
|
||||
}
|
||||
|
||||
void CResourceStore::SetProject(CGameProject *pProj)
|
||||
|
||||
@@ -43,7 +43,7 @@ bool CVirtualDirectory::IsEmpty(bool CheckFilesystem) const
|
||||
|
||||
bool CVirtualDirectory::IsDescendantOf(CVirtualDirectory *pDir) const
|
||||
{
|
||||
return mpParent && (mpParent == pDir || mpParent->IsDescendantOf(pDir));
|
||||
return (this == pDir) || (mpParent && pDir && (mpParent == pDir || mpParent->IsDescendantOf(pDir)));
|
||||
}
|
||||
|
||||
TString CVirtualDirectory::FullPath() const
|
||||
|
||||
Reference in New Issue
Block a user