[Users] [Bug 4038] Make enum RecvProtocol (prefs_account.h) extensible

noreply at thewildbeast.co.uk noreply at thewildbeast.co.uk
Thu Dec 6 23:02:30 CET 2018


--- Comment #1 from Andrej Kacian <andrej at kacian.sk> ---
Created attachment 1941
Rework recvtype in wizard.c

Attached patch makes "recvtype" store combobox index of desired default option,
and the actual protocol number is pulled from the relevant row's data pointer
in the combobox. That way we do not care whether the actual wanted default
protocol has number 0 or not.

This is probably the simplest solution to this problem. A more proper solution
(one that would ultimately likely simplify a lot more than just this) would be
to modify our pref system to use GValue type for the default value in the
PrefParam struct, but that's a rather complex change.

You are receiving this mail because:
You are the assignee for the bug.

More information about the Users mailing list