[Bug 347634] New: [mod-ui] Cannot pass empty string to editable ComboBox
https://bugzilla.novell.com/show_bug.cgi?id=347634 Summary: [mod-ui] Cannot pass empty string to editable ComboBox Product: openSUSE 11.0 Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: YaST2 AssignedTo: sh@novell.com ReportedBy: kmachalkova@novell.com QAContact: jsrain@novell.com CC: mzugec@novell.com Found By: --- Sometimes, if we want user to enter any value into ComboBox, yet offer him a choice from several pre-defined alternatives, giving 'user defined' value priority, we use this construction (e.g. in yast2-network, sudo etc.): `ComboBox (`id("combo"), `opt(`editable), "Cool label", [ ... some items here .. ] ) .. UI::ChangeWidget(`id("combo", `Value, ""); The expected result is that empty string will be at the first position of ComboBox. It used to work that way before mod-ui. Now in mod-ui, two double quotes (C string "\"\"") appear in such ComboBox as a default value. Moreover, if you save such ComboBox, backslashes and quotation marks start to breed :) I succesfully tried to get around this in setText() for ComboBox method in ncurses, but I'd prefer if this had been solved somewhere in libyui (don't know specifically where) and a real empty string would be passed to setText() method instead of "\"\"", in case of the above ChangeWidget call. We need a way to clear editable ComboBox. Current mod-ui implementation is not compatible with previous one, which is relied upon on several places in our YCP modules -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=347634
User kmachalkova@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=347634#c1
--- Comment #1 from Katarina Machalkova
https://bugzilla.novell.com/show_bug.cgi?id=347634
User sh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=347634#c2
Stefan Hundhammer
https://bugzilla.novell.com/show_bug.cgi?id=347634
User sh@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=347634#c3
--- Comment #3 from Stefan Hundhammer
participants (1)
-
bugzilla_noreply@novell.com