[Pkg-privacy-commits] [tails-installer] 26/27: Seems the property setters don't work as they should
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:27:00 UTC 2017
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to tag 3.91.0
in repository tails-installer.
commit 56c4e19242e157e61c1c78787f5b49b261fd5c1f
Author: Martin Briza <mbriza at redhat.com>
Date: Mon Mar 21 10:23:50 2016 +0100
Seems the property setters don't work as they should
---
liveusb/gui.py | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/liveusb/gui.py b/liveusb/gui.py
index 2f033f3..f952df9 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -715,20 +715,14 @@ class USBDrive(QObject):
def beingRestored(self):
return self._beingRestored
- @beingRestored.setter
- def beingRestored(self, v):
- if v != self._beingRestored:
- self._beingRestored = v
- self.beingRestoredChanged.emit()
- if not v:
- self._restoreThread = None
-
def restoreCallback(self, ok, message=None):
- beingRestored = False
+ self._beingRestored = False
+ self.beingRestoredChanged.emit()
@pyqtSlot()
def restore(self):
- beingRestored = True
+ self._beingRestored = True
+ self.beingRestoredChanged.emit()
self.live.restore_drive(self.drive, self.restoreCallback)
class LiveUSBData(QObject):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git
More information about the Pkg-privacy-commits
mailing list