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
caa29938
Commit
caa29938
authored
Sep 20, 2013
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed memory leaks
parent
93cf1738
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
56 additions
and
49 deletions
+56
-49
mainwindow.py
blink/mainwindow.py
+8
-3
sessions.py
blink/sessions.py
+48
-46
No files found.
blink/mainwindow.py
View file @
caa29938
...
...
@@ -157,6 +157,7 @@ class MainWindow(base_class, ui_class):
self
.
server_tools_account_model
.
rowsRemoved
.
connect
(
self
.
_SH_ServerToolsAccountModelChanged
)
self
.
session_model
.
sessionAdded
.
connect
(
self
.
_SH_SessionModelAddedSession
)
self
.
session_model
.
sessionRemoved
.
connect
(
self
.
_SH_SessionModelRemovedSession
)
self
.
session_model
.
structureChanged
.
connect
(
self
.
_SH_SessionModelChangedStructure
)
self
.
silent_button
.
clicked
.
connect
(
self
.
_SH_SilentButtonClicked
)
...
...
@@ -562,6 +563,10 @@ class MainWindow(base_class, ui_class):
if
session_item
.
session
.
state
is
None
:
self
.
search_box
.
clear
()
def
_SH_SessionModelRemovedSession
(
self
,
session_item
):
if
not
self
.
session_model
.
rowCount
():
self
.
switch_view_button
.
view
=
SwitchViewButton
.
ContactView
def
_SH_SessionModelChangedStructure
(
self
):
active_sessions
=
self
.
session_model
.
active_sessions
self
.
active_sessions_label
.
setText
(
u'There is 1 active call'
if
len
(
active_sessions
)
==
1
else
u'There are
%
d active calls'
%
len
(
active_sessions
))
...
...
@@ -611,8 +616,8 @@ class MainWindow(base_class, ui_class):
action
=
self
.
received_calls_menu
.
addAction
(
unicode
(
entry
))
action
.
entry
=
entry
def
_SH_PendingWatcherDialogFinished
(
self
,
dialog
,
code
):
self
.
pending_watcher_dialogs
.
remove
(
dialog
)
def
_SH_PendingWatcherDialogFinished
(
self
,
result
):
self
.
pending_watcher_dialogs
.
remove
(
self
.
sender
()
)
def
_SH_SystemTrayIconActivated
(
self
,
reason
):
if
reason
==
QSystemTrayIcon
.
Trigger
:
...
...
@@ -773,7 +778,7 @@ class MainWindow(base_class, ui_class):
def
_NH_SIPAccountGotPendingWatcher
(
self
,
notification
):
dialog
=
PendingWatcherDialog
(
notification
.
sender
,
notification
.
data
.
uri
,
notification
.
data
.
display_name
)
dialog
.
finished
.
connect
(
partial
(
self
.
_SH_PendingWatcherDialogFinished
,
dialog
)
)
dialog
.
finished
.
connect
(
self
.
_SH_PendingWatcherDialogFinished
)
self
.
pending_watcher_dialogs
.
append
(
dialog
)
dialog
.
show
()
...
...
blink/sessions.py
View file @
caa29938
This diff is collapsed.
Click to expand it.
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