mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-24 15:26:36 -06:00
baseclass: Catch cursor error if icon missing (bz 1516588)
Debian users who installed virt-manager on a bare system found that a missing cursor icon theme caused addhardware wizard to fail https://bugzilla.redhat.com/show_bug.cgi?id=1516588
This commit is contained in:
parent
b17c7565e2
commit
9a87a8d5ea
@ -338,8 +338,15 @@ class vmmGObjectUI(vmmGObject):
|
||||
gdk_window = topwin.get_window()
|
||||
if not gdk_window:
|
||||
return
|
||||
cursor = Gdk.Cursor.new_from_name(gdk_window.get_display(), "default")
|
||||
gdk_window.set_cursor(cursor)
|
||||
|
||||
try:
|
||||
cursor = Gdk.Cursor.new_from_name(
|
||||
gdk_window.get_display(), "default")
|
||||
gdk_window.set_cursor(cursor)
|
||||
except:
|
||||
# If a cursor icon theme isn't installed this can cause errors
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=1516588
|
||||
logging.debug("Error setting cursor", exc_info=True)
|
||||
|
||||
def _cleanup_on_conn_removed(self):
|
||||
from .connmanager import vmmConnectionManager
|
||||
|
Loading…
Reference in New Issue
Block a user