Skip to content

Commit

Permalink
Translator: Automake missing directory for orphan entry
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Oct 1, 2024
1 parent 29f1494 commit 9aae9ad
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Translator/textdata/files_list_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,22 @@ bool FilesListModel::addChild(TrView &it, bool isOrphan)
}
}

if(!found && !isOrphan) // Add later, when required branch will be added soon
m_viewOrphans.push_back(it);
if(!found)
{
if(isOrphan)
{
if(it.type == T_LEVEL)
{
TrView e;
e.type = T_DIR;
e.key = it.dir;
addToView(e, m_path);
return true;
}
}
else // Add later, when required branch will be added soon
m_viewOrphans.push_back(it);
}

return found;
}
Expand Down

0 comments on commit 9aae9ad

Please sign in to comment.