Dropdown values are reset when other widgets are modified
Posted: 27 Jun 2011 03:59
I've encountered an annoying bug that I can't seem to work-around. When I programmatically add or modify widgets on the dialog box of my extension (e.g. add HTML, add an image, modify a label), the selected values in my dropdowns are reset to their defaults. I'm inclined to think that this is a VLC v1.1.10 bug, because it only happens once per session in both Windows and Linux.
For example, I start by clicking the menu item of my extension to open its dialog box. I then manually choose "Option 3" in a dropdown and click a button, which retrieves some information from the web. It then uses this data to modify a label and add HTML/image widgets. Immediately after these modifications are displayed, VLC unexpectedly resets the value of the dropdown to "Option 1".
To prove that the widget modifications were the cause, I disabled them in the code and reloaded the extension. After performing the same steps as before, the value of my dropdown was kept at "Option 3" after the web information was retrieved. I'm hoping someone can confirm that this is a VLC bug and tell me how soon it will be fixed. Let me know if you'd like me to provide any further details.
For example, I start by clicking the menu item of my extension to open its dialog box. I then manually choose "Option 3" in a dropdown and click a button, which retrieves some information from the web. It then uses this data to modify a label and add HTML/image widgets. Immediately after these modifications are displayed, VLC unexpectedly resets the value of the dropdown to "Option 1".
To prove that the widget modifications were the cause, I disabled them in the code and reloaded the extension. After performing the same steps as before, the value of my dropdown was kept at "Option 3" after the web information was retrieved. I'm hoping someone can confirm that this is a VLC bug and tell me how soon it will be fixed. Let me know if you'd like me to provide any further details.