clone: Disable 'share' dropdown option if disk is not shareable.

This commit is contained in:
Cole Robinson 2009-07-28 21:22:40 -04:00
parent f4de7cf6e7
commit d19682f65f

View File

@ -427,7 +427,8 @@ class vmmCloneVM(gobject.GObject):
(size and " (%s)" % size or "")),
can_clone, False])
model.insert(STORAGE_COMBO_SHARE,
[_("Share disk with %s") % orig_name, True, False])
[_("Share disk with %s") % orig_name, can_share,
False])
model.insert(STORAGE_COMBO_SEP, ["", False, True])
model.insert(STORAGE_COMBO_DETAILS,
[_("Details..."), True, False])