forked from osmocom/wireshark
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.
(cherry picked from commit 56e19bec49
)
This commit is contained in:
parent
d1865925ee
commit
de81bd705a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue