This tries to fix some rare case when it stops receieving dbus events

This commit is contained in:
donoban 2018-05-09 14:37:46 +02:00
parent 806915f834
commit ce07b9dcb1
No known key found for this signature in database
GPG Key ID: 141310D8E3ED08A5

View File

@ -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)