Export Objects: Don't double increment count

Don't double increment the count when saving all Export Objects,
which effectively halves the maximum number allowed.
This commit is contained in:
John Thacker 2020-10-22 09:22:51 -04:00 committed by Wireshark GitLab Utility
parent 69b1ad68bc
commit 56e19bec49
1 changed files with 0 additions and 1 deletions

View File

@ -190,7 +190,6 @@ void ExportObjectModel::saveAllEntries(QString path)
}
filename = QString::fromUtf8(safe_filename->str);
g_string_free(safe_filename, TRUE);
count++;
} while (save_dir.exists(filename) && ++count < prefs.gui_max_export_objects);
eo_save_entry(save_dir.filePath(filename).toUtf8().constData(), entry);
}