This tries to fix some rare case when it stops receieving dbus events
This commit is contained in:
parent
806915f834
commit
ce07b9dcb1
@ -373,8 +373,8 @@ class VmManagerWindow(ui_qubemanager.Ui_VmManagerWindow, QtGui.QMainWindow):
|
|||||||
self.shutdown_monitor = {}
|
self.shutdown_monitor = {}
|
||||||
|
|
||||||
# Connect dbus events
|
# Connect dbus events
|
||||||
bus = SessionBus()
|
self.bus = SessionBus()
|
||||||
manager = bus.get("org.qubes.DomainManager1")
|
manager = self.bus.get("org.qubes.DomainManager1")
|
||||||
manager.DomainAdded.connect(self.OnDomainAdded)
|
manager.DomainAdded.connect(self.OnDomainAdded)
|
||||||
manager.DomainRemoved.connect(self.OnDomainRemoved)
|
manager.DomainRemoved.connect(self.OnDomainRemoved)
|
||||||
manager.Failed.connect(self.OnFailed)
|
manager.Failed.connect(self.OnFailed)
|
||||||
|
Loading…
Reference in New Issue
Block a user