Simplify collection_save_or_append_dialog
authorArkadiy Illarionov <qarkai@gmail.com>
Sun, 20 Aug 2023 18:25:32 +0000 (21:25 +0300)
committerColin Clark <colin.clark@cclark.uk>
Sun, 20 Aug 2023 18:40:37 +0000 (19:40 +0100)
commitf90512d1b257fd3de86894ef40af9d538a323ee5
treecf5192bb6c2d3785b0992a6a2456ed62995c695a
parent495553c8ad870ff54a9ee6cfd8f02883ae0dedcc
Simplify collection_save_or_append_dialog

- Use one comparison to detect what to do.
- Reduce scope of variables.
- Deduplicate code.
- Free GString memory.
src/collect-dlg.cc