details: Properly update disk names after device removal

This commit is contained in:
Cole Robinson 2009-12-13 17:17:56 -05:00
parent 93b4d82c77
commit 01d78647c5

View File

@ -1804,8 +1804,10 @@ class vmmDetails(gobject.GObject):
for row in hw_list_model: for row in hw_list_model:
if (row[HW_LIST_COL_TYPE] == hwtype and if (row[HW_LIST_COL_TYPE] == hwtype and
row[HW_LIST_COL_DEVICE][2] == info[2]): row[HW_LIST_COL_DEVICE][2] == info[2]):
# Update existing HW info # Update existing HW info
row[HW_LIST_COL_DEVICE] = info row[HW_LIST_COL_DEVICE] = info
row[HW_LIST_COL_LABEL] = name
return return
if row[HW_LIST_COL_TYPE] <= hwtype: if row[HW_LIST_COL_TYPE] <= hwtype: