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
10e85b6e
Commit
10e85b6e
authored
May 24, 2022
by
Tijmen de Mes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Syntax fixes
parent
d4d559ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
accounts.py
blink/accounts.py
+6
-5
No files found.
blink/accounts.py
View file @
10e85b6e
...
...
@@ -168,7 +168,7 @@ class AccountModel(QAbstractListModel):
if
notification
.
sender
is
not
BonjourAccount
():
registrar
=
notification
.
data
.
registrar
self
.
accounts
[
position
]
.
registrar
=
"
%
s:
%
s:
%
s"
%
(
registrar
.
transport
,
registrar
.
address
,
registrar
.
port
)
self
.
dataChanged
.
emit
(
self
.
index
(
position
),
self
.
index
(
position
))
notification
.
center
.
post_notification
(
'SIPRegistrationInfoDidChange'
,
sender
=
notification
.
sender
)
...
...
@@ -177,7 +177,7 @@ class AccountModel(QAbstractListModel):
position
=
self
.
accounts
.
index
(
notification
.
sender
)
except
ValueError
:
return
self
.
accounts
[
position
]
.
registration_state
=
None
self
.
accounts
[
position
]
.
registrar
=
None
self
.
dataChanged
.
emit
(
self
.
index
(
position
),
self
.
index
(
position
))
...
...
@@ -188,14 +188,14 @@ class AccountModel(QAbstractListModel):
position
=
self
.
accounts
.
index
(
notification
.
sender
)
except
ValueError
:
return
reason
=
'Unknown reason'
if
hasattr
(
notification
.
data
,
'error'
):
reason
=
notification
.
data
.
error
elif
hasattr
(
notification
.
data
,
'reason'
):
reason
=
notification
.
data
.
reason
self
.
accounts
[
position
]
.
registration_state
=
'failed (
%
s)'
%
(
reason
.
decode
()
if
isinstance
(
reason
,
bytes
)
else
reason
)
self
.
accounts
[
position
]
.
registrar
=
None
self
.
dataChanged
.
emit
(
self
.
index
(
position
),
self
.
index
(
position
))
...
...
@@ -519,7 +519,7 @@ class AddAccountDialog(base_class, ui_class, metaclass=QSingleton):
else
:
if
ca
not
in
existing_cas
:
certificate_file
=
open
(
ca_path
,
'w'
)
certificate_file
.
write
(
existing_cas
+
ca
)
certificate_file
.
write
(
existing_cas
+
ca
)
certificate_file
.
close
()
settings
=
SIPSimpleSettings
()
settings
.
tls
.
ca_list
=
ca_path
...
...
@@ -551,6 +551,7 @@ class AddAccountDialog(base_class, ui_class, metaclass=QSingleton):
self
.
_initialize
()
self
.
show
()
del
ui_class
,
base_class
...
...
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