From 5582c2b7eeae92f0d67e86454f288cdc58e54e6b Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 7 Jan 2011 19:10:01 -0600 Subject: [PATCH] Slight mod to button updating --- src/dialogs.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index edcec03..e6c6fcc 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -466,7 +466,10 @@ class SMSEntryWindow(object): self._smsButton.setEnabled(True) else: self._dialButton.setEnabled(False) - self._smsButton.setEnabled(True) + if count == 0: + self._smsButton.setEnabled(False) + else: + self._smsButton.setEnabled(True) def _update_recipients(self): draftContactsCount = self._session.draft.get_num_contacts() -- 1.7.9.5