[Pkg-privacy-commits] [tails-installer] 66/210: Emit change signals for warnings and info messages

Intrigeri intrigeri at moszumanska.debian.org
Wed May 24 15:26:29 UTC 2017


This is an automated email from the git hooks/post-receive script.

intrigeri pushed a commit to tag 3.90.0
in repository tails-installer.

commit ae50477fab3b3ddf4b93ae34ec357b7ab65e87dd
Author: Martin Briza <mbriza at redhat.com>
Date:   Thu Apr 9 13:19:32 2015 +0200

    Emit change signals for warnings and info messages
---
 liveusb/gui.py | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/liveusb/gui.py b/liveusb/gui.py
index cd242c4..8283215 100755
--- a/liveusb/gui.py
+++ b/liveusb/gui.py
@@ -481,7 +481,9 @@ class Release(QObject):
     @pyqtSlot()
     def inspectDestination(self):
         self._warning = []
-        self.info = []
+        self.warningChanged.emit()
+        self._info = []
+        self.infoChanged.emit()
         if self.parent().option('dd'):
             self.addWarning(_("You are about to perform a destructive install. This will erase all data and partitions on your USB drive"))
         else:
@@ -894,9 +896,9 @@ class LiveUSBData(QObject):
         key = self._optionKeys[index]
         if self._optionValues[key] != value:
             # dd and resetMBR options are mutually exclusive
-            if key == 'dd' and value == True:
+            if key == 'dd' and value:
                 self._optionValues['resetMBR'] = False
-            if key == 'resetMBR' and value == True:
+            if key == 'resetMBR' and value:
                 self._optionValues['dd'] = False
             self._optionValues[key] = value
             self.optionsChanged.emit()

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