fix duplicate profile on update

This commit is contained in:
Nova 2024-12-21 04:21:40 +03:30
parent f1e96499c2
commit a5910e6531
No known key found for this signature in database
GPG Key ID: 389787EC83F5D73A

View File

@ -686,7 +686,7 @@ namespace NekoGui_sub {
group->order = {};
for (const auto &ent: rawUpdater->updated_order) {
auto deleted_index = update_del.indexOf(ent);
if (deleted_index > 0) {
if (deleted_index >= 0) {
if (deleted_index >= update_keep.count()) continue; // should not happen
auto ent2 = update_keep[deleted_index];
group->order.append(ent2->id);