GNOME Bugzilla – Bug 684220
wizard: Continue button becomes sensitive while nothing is selected
Last modified: 2016-03-31 13:54:04 UTC
Steps to reproduce: In Source Selection Screen 1 - Click in "Select a file" 2 - In the File Selector, lick in "Cancel" At this point, Continue button is activated, but should be only if an ISO image was selected.
I cannot reproduce this one. Are you testing this right after starting boxes, or did you do something else first ?
(In reply to comment #1) > I cannot reproduce this one. Are you testing this right after starting boxes, > or did you do something else first ? I'm testing right after starting Boxes.
I'm able to reproduce this here.
Created attachment 226075 [details] [review] wizard: Select entry if its ClickedFunc returns true This fixes the bug of 'Continue' button becoming sensitive if you cancel the file selection dialog.
Created attachment 226076 [details] [review] wizard: Unselect entry when going from URL to main page If you follow these steps, 'Continue' becomes sensitive: 1. Type something in the entry on URL page 2. Go back to main page 3. Go to URL page 4. Remove all text from entry 5. Repeat 2 and 3 again This patch fixes the problem by simply unsetting the current selection when going back from URL to main page. IMHO this makes sense anyways since on main page the URL is not shown so user doesn't know what would 'Continue' imply. Note that with this patch, 'Continue' becomes sensitive again if you go to URL page and there is text entered already in there. NOTE: We probably should be doing some more checks on URLs before enabling the 'Continue' button rather than simply checking non-zero length string.
Review of attachment 226075 [details] [review]: Looks good
Review of attachment 226076 [details] [review]: I tested it a bit, and this seems ok
Attachment 226075 [details] pushed as 2f2bc20 - wizard: Select entry if its ClickedFunc returns true Attachment 226076 [details] pushed as d7fdde7 - wizard: Unselect entry when going from URL to main page