GNOME Bugzilla – Bug 749725
'ghost' VMs when cancelling wizard
Last modified: 2016-09-20 08:15:55 UTC
Start creation of a new VM, pick an iso which can be autoinstalled (I used a RHEL7 image). Get to the 'review' page (ie the very last one with the 'Create' button). Click 'Back', 'Continue', 'Back', 'Continue' a few times (ie alternate between 'Box Setup' and 'Review'). Click 'Cancel'. You can see a few VMs with a spinner which should not have been created. Deleting them triggers some warnings/criticals in the console.
I just noticed that if you create one of these ghost VMs, and then go forward, intending to install/use the latest VM you created, if you try to delete the ghost VM, it will remove the disk image of the actual VM that you want to keep (presumably because they share the same name).
commit: 62989461ccf5b0c97b1788647c29bdc02b62dabe collection-view: Keep track of hidden items We don't immediately add new items to the view before UI is out of wizard state since commit 94414dc but we don't keep track of these hidden items, which results in these items being add to the view even if user cancel's their creation and items don't actually exist. This results in ghost VMs being added to the view. This patches fixes the issue by add a list of such hidden items and ensuring they don't get added if user changes their mind.