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
6793765d
Commit
6793765d
authored
Sep 13, 2016
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a memory circular reference
parent
ac77b6e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
mainwindow.py
blink/mainwindow.py
+6
-6
No files found.
blink/mainwindow.py
View file @
6793765d
...
@@ -358,8 +358,8 @@ class MainWindow(base_class, ui_class):
...
@@ -358,8 +358,8 @@ class MainWindow(base_class, ui_class):
active_action
=
action_map
.
get
(
settings
.
video
.
device
,
Null
)
active_action
=
action_map
.
get
(
settings
.
video
.
device
,
Null
)
active_action
.
setChecked
(
True
)
active_action
.
setChecked
(
True
)
def
_AH_AccountActionTriggered
(
self
,
action
,
enabled
):
def
_AH_AccountActionTriggered
(
self
,
enabled
):
account
=
action
.
data
()
account
=
self
.
sender
()
.
data
()
account
.
enabled
=
enabled
account
.
enabled
=
enabled
account
.
save
()
account
.
save
()
...
@@ -448,8 +448,8 @@ class MainWindow(base_class, ui_class):
...
@@ -448,8 +448,8 @@ class MainWindow(base_class, ui_class):
makedirs
(
directory
)
makedirs
(
directory
)
QDesktopServices
.
openUrl
(
QUrl
.
fromLocalFile
(
directory
))
QDesktopServices
.
openUrl
(
QUrl
.
fromLocalFile
(
directory
))
def
_AH_VoicemailActionTriggered
(
self
,
action
,
checked
):
def
_AH_VoicemailActionTriggered
(
self
,
checked
):
account
=
action
.
data
()
account
=
self
.
sender
()
.
data
()
contact
,
contact_uri
=
URIUtils
.
find_contact
(
account
.
voicemail_uri
,
display_name
=
'Voicemail'
)
contact
,
contact_uri
=
URIUtils
.
find_contact
(
account
.
voicemail_uri
,
display_name
=
'Voicemail'
)
session_manager
=
SessionManager
()
session_manager
=
SessionManager
()
session_manager
.
create_session
(
contact
,
contact_uri
,
[
StreamDescription
(
'audio'
)],
account
=
account
)
session_manager
.
create_session
(
contact
,
contact_uri
,
[
StreamDescription
(
'audio'
)],
account
=
account
)
...
@@ -880,13 +880,13 @@ class MainWindow(base_class, ui_class):
...
@@ -880,13 +880,13 @@ class MainWindow(base_class, ui_class):
action
.
setCheckable
(
True
)
action
.
setCheckable
(
True
)
action
.
setChecked
(
account
.
enabled
)
action
.
setChecked
(
account
.
enabled
)
action
.
setData
(
account
)
action
.
setData
(
account
)
action
.
triggered
.
connect
(
partial
(
self
.
_AH_AccountActionTriggered
,
action
)
)
action
.
triggered
.
connect
(
self
.
_AH_AccountActionTriggered
)
action
=
self
.
voicemail_menu
.
addAction
(
self
.
mwi_icons
[
0
],
account
.
id
)
action
=
self
.
voicemail_menu
.
addAction
(
self
.
mwi_icons
[
0
],
account
.
id
)
action
.
setVisible
(
False
if
account
is
BonjourAccount
()
else
account
.
enabled
and
account
.
message_summary
.
enabled
)
action
.
setVisible
(
False
if
account
is
BonjourAccount
()
else
account
.
enabled
and
account
.
message_summary
.
enabled
)
action
.
setEnabled
(
False
if
account
is
BonjourAccount
()
else
account
.
voicemail_uri
is
not
None
)
action
.
setEnabled
(
False
if
account
is
BonjourAccount
()
else
account
.
voicemail_uri
is
not
None
)
action
.
setData
(
account
)
action
.
setData
(
account
)
action
.
triggered
.
connect
(
partial
(
self
.
_AH_VoicemailActionTriggered
,
action
)
)
action
.
triggered
.
connect
(
self
.
_AH_VoicemailActionTriggered
)
def
_NH_SIPAccountManagerDidRemoveAccount
(
self
,
notification
):
def
_NH_SIPAccountManagerDidRemoveAccount
(
self
,
notification
):
account
=
notification
.
data
.
account
account
=
notification
.
data
.
account
...
...
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