diff options
author | Cole Robinson <crobinso@redhat.com> | 2023-01-19 11:13:56 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2023-01-19 11:40:37 -0500 |
commit | cc4a39ea94f42bc92765eb3bb56e2b7f9198be67 (patch) | |
tree | efc4317d1a45d810df310da0ff2abc39a878a185 | |
parent | 6ec00474a659158f20248d6af3771d1a12ddac7b (diff) | |
download | virt-manager-cc4a39ea94f42bc92765eb3bb56e2b7f9198be67.tar.gz |
asyncjob: Fix backtrace when no cursor theme installed
Fixes: https://github.com/virt-manager/virt-manager/issues/479
Signed-off-by: Cole Robinson <crobinso@redhat.com>
-rw-r--r-- | virtManager/asyncjob.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/virtManager/asyncjob.py b/virtManager/asyncjob.py index 32d9c0a1..46692ace 100644 --- a/virtManager/asyncjob.py +++ b/virtManager/asyncjob.py @@ -265,9 +265,7 @@ class vmmAsyncJob(vmmGObjectUI): self.topwin.present() if not self.cancel_cb and self.show_progress: - gdk_window = self.topwin.get_window() - gdk_window.set_cursor( - Gdk.Cursor.new_from_name(gdk_window.get_display(), "progress")) + self._set_cursor("progress") self._bg_thread.start() |