[gnome-boxes/wip/image-import: 29/30] collection-view: Don't let user launch under-import VMs



commit 9dd8751ed1e6f1036e511c525921868cc3337b03
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]