[gnome-boxes/gnome-3-8] Make sure newly created VMs are marked as used recently



commit d19c3db039323a3ae581e5294bca11c29fcdc2ab
Author: Christophe Fergeau <cfergeau redhat com>
Date:   Tue May 21 17:36:33 2013 +0200

    Make sure newly created VMs are marked as used recently
    
    When creating a VM for an unattended install, we don't connect
    to its display automatically but run it minimized. This means
    it never gets marked as recently used automatically as this is
    done in the Display class. This commit sets Machine::access_last_time
    when starting a VM through VMCreator::launch_vm() to ensure
    the newly created VM appears first in the collection view even
    if it's an express install.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=700777

 src/vm-creator.vala |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/vm-creator.vala b/src/vm-creator.vala
index 99e6893..1529199 100644
--- a/src/vm-creator.vala
+++ b/src/vm-creator.vala
@@ -73,6 +73,7 @@ private class Boxes.VMCreator {
 
         state_changed_id = machine.notify["state"].connect (on_machine_state_changed);
         machine.vm_creator = this;
+        machine.config.access_last_time = get_real_time ();
         update_machine_info (machine);
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]