diff --git a/ui/storagelist.ui b/ui/storagelist.ui
index b2bf4acf..7aeee818 100644
--- a/ui/storagelist.ui
+++ b/ui/storagelist.ui
@@ -217,7 +217,7 @@
3
200
-
-
+
True
True
in
diff --git a/virtManager/storagelist.py b/virtManager/storagelist.py
index 0756e873..5a091fff 100644
--- a/virtManager/storagelist.py
+++ b/virtManager/storagelist.py
@@ -415,6 +415,9 @@ class vmmStorageList(vmmGObjectUI):
list_widget.get_selection().unselect_all()
model.clear()
+ vadj = self.widget("vol-scroll").get_vadjustment()
+ vscroll_percent = vadj.get_value() / max(vadj.get_upper(), 1)
+
for vol in vols:
key = vol.get_connkey()
@@ -455,6 +458,10 @@ class vmmStorageList(vmmGObjectUI):
row[VOL_COLUMN_SENSITIVE] = sensitive
model.append(row)
+ def _reset_vscroll_position():
+ vadj.set_value(vadj.get_upper() * vscroll_percent)
+ self.idle_add(_reset_vscroll_position)
+
def _confirm_changes(self):
if not self._active_edits:
return True