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
80e4d258
Commit
80e4d258
authored
Mar 16, 2015
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore hold/hangup keyboard shortcuts if no session is selected
parent
314bd75d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
6 deletions
+10
-6
sessions.py
blink/sessions.py
+10
-6
No files found.
blink/sessions.py
View file @
80e4d258
...
@@ -2595,12 +2595,16 @@ class AudioSessionListView(QListView):
...
@@ -2595,12 +2595,16 @@ class AudioSessionListView(QListView):
session
.
widget
.
drop_indicator
=
True
session
.
widget
.
drop_indicator
=
True
def
_SH_HangupShortcutActivated
(
self
):
def
_SH_HangupShortcutActivated
(
self
):
session
=
self
.
selectedIndexes
()[
0
]
.
data
(
Qt
.
UserRole
)
selected_indexes
=
self
.
selectedIndexes
()
if
selected_indexes
:
session
=
selected_indexes
[
0
]
.
data
(
Qt
.
UserRole
)
if
session
.
client_conference
is
None
:
if
session
.
client_conference
is
None
:
session
.
widget
.
hangup_button
.
click
()
session
.
widget
.
hangup_button
.
click
()
def
_SH_HoldShortcutActivated
(
self
):
def
_SH_HoldShortcutActivated
(
self
):
session
=
self
.
selectedIndexes
()[
0
]
.
data
(
Qt
.
UserRole
)
selected_indexes
=
self
.
selectedIndexes
()
if
selected_indexes
:
session
=
selected_indexes
[
0
]
.
data
(
Qt
.
UserRole
)
if
session
.
client_conference
is
None
:
if
session
.
client_conference
is
None
:
session
.
widget
.
hold_button
.
click
()
session
.
widget
.
hold_button
.
click
()
...
...
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