GNOME Bugzilla – Bug 736140
properties returns to machine if it is not active
Last modified: 2016-03-31 13:22:07 UTC
Steps to reproduce: 1. Start a machine 2. Go to properties 3. Press "Force Shutdown" 4. Acknoledge the force shutdown 5. Go back Actual results: A frozen last state of the VM. Expected results: On pressing back we return to collection view. Analysis: I bisected the issue down to commit 7c91133a. Since then we dont return from properties when the machine disconnects automatically. As an implication on the disconnect event we should show a black screenshot to indicate that the VM is off to the user and return to collection view if the user presses the back button and the VM is still disconnected.
Created attachment 285506 [details] [review] machine: Go to COLLECTION from explicit states only When the machine disconnects and UIState is CREDS or DISPLAY we want to return to COLLECTION view. However in some other states, like WIZARD this doesnt make sense. This is why we shouldnt just exclude PROPERTIES state from the affected comparision.
Created attachment 285507 [details] [review] machine: Update screenshot on machine disconnect If a machine disconnects we want to update the screenshot so if the user is at the properties view he will get an indication that it is no longer running.
Created attachment 285508 [details] [review] properties-toolbar: Return to COLLECTION if VM is not running
Actually with latest git master, I can't reproduce this. What happens is after step#4, Boxes automatically goes back to collection view.
But what problem did you have then? Thats weird. I pulled again from master and still have the behaviour described in the initial report of this bug. Wasnt it for commit 7c91133a that boxes does not automatically switch to collection view when a VM disconnects? (Thus boxes doesnt interrupt the user.)
Hmm.. I can reproduce this now. weird :)
Review of attachment 285506 [details] [review]: I guess it makes sense.
Review of attachment 285507 [details] [review]: this too seems to make sense
Review of attachment 285508 [details] [review]: Make sense
Attachment 285506 [details] pushed as 17062b8 - machine: Go to COLLECTION from explicit states only Attachment 285507 [details] pushed as dad7213 - machine: Update screenshot on machine disconnect Attachment 285508 [details] pushed as b68642b - properties-toolbar: Return to COLLECTION if VM is not running