projects
/
gc-dialer
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
35398cb
)
Auto-select no alarm system if there is nothing to notify on changes
author
Ed Page
<eopage@byu.net>
Sun, 27 Feb 2011 00:25:01 +0000
(18:25 -0600)
committer
Ed Page
<eopage@byu.net>
Tue, 19 Apr 2011 23:49:27 +0000
(18:49 -0500)
src/dialcentral_qt.py
patch
|
blob
|
history
diff --git
a/src/dialcentral_qt.py
b/src/dialcentral_qt.py
index
7ba1e7e
..
0f4150b
100755
(executable)
--- a/
src/dialcentral_qt.py
+++ b/
src/dialcentral_qt.py
@@
-542,7
+542,17
@@
class MainWindow(qwrappers.WindowWrapper):
else:
callbackNumber = self._accountDialog.selectedCallback
self._session.set_callback_number(callbackNumber)
else:
callbackNumber = self._accountDialog.selectedCallback
self._session.set_callback_number(callbackNumber)
- self._app.alarmHandler.apply_settings(self._accountDialog.notifications, self._accountDialog.notificationTime)
+
+ if (
+ self._accountDialog.notifyOnMissed or
+ self._accountDialog.notifyOnVoicemail or
+ self._accountDialog.notifyOnSms
+ ):
+ notifications = self._accountDialog.notifications
+ else:
+ notifications = self._accountDialog.ALARM_NONE
+ self._app.alarmHandler.apply_settings(notifications, self._accountDialog.notificationTime)
+
self._app.notifyOnMissed = self._accountDialog.notifyOnMissed
self._app.notifyOnVoicemail = self._accountDialog.notifyOnVoicemail
self._app.notifyOnSms = self._accountDialog.notifyOnSms
self._app.notifyOnMissed = self._accountDialog.notifyOnMissed
self._app.notifyOnVoicemail = self._accountDialog.notifyOnVoicemail
self._app.notifyOnSms = self._accountDialog.notifyOnSms