[gnome-boxes] collection-view: Don't let user launch under-import VMs



commit 5e27d33b2841f8943895a2fb3b796c9f5bc0b703
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Thu Jun 6 03:29:04 2013 +0300

    collection-view: Don't let user launch under-import VMs
    
    Launching of such VMs doesn't make any sense.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=690757

 src/collection-view.vala |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/collection-view.vala b/src/collection-view.vala
index 78f8835..64a230d 100644
--- a/src/collection-view.vala
+++ b/src/collection-view.vala
@@ -312,6 +312,8 @@ private class Boxes.CollectionView: Boxes.UI {
         main_view.get_style_context ().add_class ("boxes-icon-view");
         main_view.item_activated.connect ((view, id, path) => {
             var item = get_item_for_path (path);
+            if (item is LibvirtMachine && (item as LibvirtMachine).importing)
+                return;
             App.app.select_item (item);
         });
         main_view.view_selection_changed.connect (() => {


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