Skip to content

Commit

Permalink
Update SbieModel.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
okrc committed Nov 23, 2022
1 parent f26c707 commit d6c33cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SandboxiePlus/SandMan/Models/SbieModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ QList<QVariant> CSbieModel::Sync(const QMap<QString, CSandBoxPtr>& BoxList, cons
QString ParentGroup = pNode->Path.isEmpty() ? "" : CSbieModel__RemoveGroupMark(pNode->Path.last().toString());
int OrderNumber = Groups[ParentGroup].indexOf(Group);
if (pNode->OrderNumber != OrderNumber) {
pNode->OrderNumber = OrderNumber;
pNode->OrderNumber = (OrderNumber == -1) ? Groups[ParentGroup].size() : OrderNumber;
Changed = 1;
}

Expand Down Expand Up @@ -209,7 +209,7 @@ QList<QVariant> CSbieModel::Sync(const QMap<QString, CSandBoxPtr>& BoxList, cons
QString Group = pNode->Path.isEmpty() ? "" : CSbieModel__RemoveGroupMark(pNode->Path.last().toString());
int OrderNumber = Groups[Group].indexOf(pBox->GetName());
if (pNode->OrderNumber != OrderNumber) {
pNode->OrderNumber = OrderNumber;
pNode->OrderNumber = (OrderNumber == -1) ? Groups[Group].size() : OrderNumber;
Changed = 1;
}

Expand Down

0 comments on commit d6c33cf

Please sign in to comment.