Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vmj-qt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
vmj-qt
Commits
b1da5e5c
Commit
b1da5e5c
authored
Apr 05, 2014
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified conditional
parent
aa279831
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
preferences.py
blink/preferences.py
+2
-2
No files found.
blink/preferences.py
View file @
b1da5e5c
...
@@ -17,7 +17,7 @@ from gnutls.crypto import X509Certificate, X509PrivateKey
...
@@ -17,7 +17,7 @@ from gnutls.crypto import X509Certificate, X509PrivateKey
from
gnutls.errors
import
GNUTLSError
from
gnutls.errors
import
GNUTLSError
from
zope.interface
import
implements
from
zope.interface
import
implements
from
sipsimple.account
import
Account
,
BonjourAccount
,
AccountManager
from
sipsimple.account
import
Account
Manager
,
BonjourAccount
from
sipsimple.application
import
SIPApplication
from
sipsimple.application
import
SIPApplication
from
sipsimple.configuration
import
DefaultValue
from
sipsimple.configuration
import
DefaultValue
from
sipsimple.configuration.datatypes
import
MSRPRelayAddress
,
PortRange
,
SIPProxyAddress
from
sipsimple.configuration.datatypes
import
MSRPRelayAddress
,
PortRange
,
SIPProxyAddress
...
@@ -1312,7 +1312,7 @@ class PreferencesWindow(base_class, ui_class):
...
@@ -1312,7 +1312,7 @@ class PreferencesWindow(base_class, ui_class):
self
.
enable_answering_machine_button
.
setChecked
(
settings
.
answering_machine
.
enabled
)
self
.
enable_answering_machine_button
.
setChecked
(
settings
.
answering_machine
.
enabled
)
if
'chat.auto_accept'
in
notification
.
data
.
modified
:
if
'chat.auto_accept'
in
notification
.
data
.
modified
:
self
.
auto_accept_chat_button
.
setChecked
(
settings
.
chat
.
auto_accept
)
self
.
auto_accept_chat_button
.
setChecked
(
settings
.
chat
.
auto_accept
)
elif
isinstance
(
notification
.
sender
,
(
Account
,
BonjourAccount
))
and
notification
.
sender
is
self
.
selected_account
:
elif
notification
.
sender
is
self
.
selected_account
is
not
None
:
account
=
notification
.
sender
account
=
notification
.
sender
if
'enabled'
in
notification
.
data
.
modified
:
if
'enabled'
in
notification
.
data
.
modified
:
self
.
account_enabled_button
.
setChecked
(
account
.
enabled
)
self
.
account_enabled_button
.
setChecked
(
account
.
enabled
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment