commit 56b85914cf1e7357de824fcbef0a4de702560a47
parent 8f5d48584de720bd484fbe69b395e3e2de45af09
Author: Maran <maran.hidskes@gmail.com>
Date: Mon, 23 Jul 2012 20:43:31 +0200
Fix the recursion issue on OSX
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/gui_lite.py b/lib/gui_lite.py
@@ -386,14 +386,14 @@ class TextedLineEdit(QLineEdit):
QLineEdit.focusInEvent(self, event)
def become_inactive(self):
- self.setText(self.inactive_text)
self.setReadOnly(True)
self.recompute_style()
+ self.setText(self.inactive_text)
def become_active(self):
- self.setText("")
self.setReadOnly(False)
self.recompute_style()
+ self.setText("")
def recompute_style(self):
qApp.style().unpolish(self)