File: fix-browse-local-button.patch

package info (click to toggle)
virt-manager 1%3A5.0.0-5%2Bdeb13u1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 20,220 kB
  • sloc: python: 44,539; xml: 28,397; makefile: 17; sh: 6
file content (17 lines) | stat: -rw-r--r-- 679 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Clicking on "Browse Local" has no effect and throws an error
Origin: upstream, https://github.com/virt-manager/virt-manager/pull/911
Bug: https://github.com/virt-manager/virt-manager/issues/901
Reviewed-by: Lee Garrett <debian@rocketjump.eu>
Last-Update: 2025-10-28
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/virtManager/storagebrowse.py
+++ b/virtManager/storagebrowse.py
@@ -181,6 +181,7 @@
         data = _BrowseReasonMetadata(self._browse_reason)
         gsettings_key = data.gsettings_key
 
+        start_folder = None
         if gsettings_key:
             start_folder = self.config.get_default_directory(gsettings_key)