projects
/
gc-dialer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
96b03ab
)
Couldn't update the message in the SMS window, fixed
author
Ed Page
<eopage@byu.net>
Sat, 2 Apr 2011 11:03:11 +0000
(06:03 -0500)
committer
Ed Page
<eopage@byu.net>
Sat, 2 Apr 2011 11:03:11 +0000
(06:03 -0500)
src/session.py
patch
|
blob
|
history
diff --git
a/src/session.py
b/src/session.py
index
93454a7
..
2144ebd
100644
(file)
--- a/
src/session.py
+++ b/
src/session.py
@@
-85,11
+85,7
@@
class Draft(QtCore.QObject):
def add_contact(self, contactId, title, description, numbersWithDescriptions):
if self._busyReason is not None:
raise RuntimeError("Please wait for %r" % self._busyReason)
def add_contact(self, contactId, title, description, numbersWithDescriptions):
if self._busyReason is not None:
raise RuntimeError("Please wait for %r" % self._busyReason)
- if contactId in self._contacts:
- _moduleLogger.info("Adding duplicate contact %r" % contactId)
- # @todo Remove this evil hack to re-popup the dialog
- self.recipientsChanged.emit()
- return
+ # Allow overwriting of contacts so that the message can be updated and the SMS dialog popped back up
contactDetails = _DraftContact(title, description, numbersWithDescriptions)
self._contacts[contactId] = contactDetails
self.recipientsChanged.emit()
contactDetails = _DraftContact(title, description, numbersWithDescriptions)
self._contacts[contactId] = contactDetails
self.recipientsChanged.emit()