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
5c4d4bb8
Commit
5c4d4bb8
authored
Feb 12, 2016
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed processing of the incoming dialog signals
parent
2c7d24ff
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
27 deletions
+15
-27
sessions.py
blink/sessions.py
+15
-27
No files found.
blink/sessions.py
View file @
5c4d4bb8
...
...
@@ -5041,8 +5041,6 @@ class IncomingRequest(QObject):
self
.
dialog
.
audio_device_label
.
setText
(
u'Selected audio device is:
%
s'
%
SIPApplication
.
voice_audio_bridge
.
mixer
.
real_output_device
)
self
.
dialog
.
finished
.
connect
(
self
.
_SH_DialogFinished
)
self
.
dialog
.
accepted
.
connect
(
self
.
_SH_DialogAccepted
)
self
.
dialog
.
rejected
.
connect
(
self
.
_SH_DialogRejected
)
def
__eq__
(
self
,
other
):
return
self
is
other
...
...
@@ -5108,13 +5106,11 @@ class IncomingRequest(QObject):
def
stream_types
(
self
):
return
{
stream
.
type
for
stream
in
(
self
.
audio_stream
,
self
.
video_stream
,
self
.
screensharing_stream
,
self
.
chat_stream
)
if
stream
is
not
None
}
def
_SH_DialogFinished
(
self
):
def
_SH_DialogFinished
(
self
,
result
):
self
.
finished
.
emit
(
self
)
def
_SH_DialogAccepted
(
self
):
if
result
==
QDialog
.
Accepted
:
self
.
accepted
.
emit
(
self
)
def
_SH_DialogRejected
(
self
):
elif
result
==
QDialog
.
Rejected
:
self
.
rejected
.
emit
(
self
,
self
.
dialog
.
reject_mode
)
...
...
@@ -5179,8 +5175,6 @@ class IncomingFileTransferRequest(QObject):
self
.
dialog
.
file_label
.
setText
(
u'File:
%
s'
%
filename
)
self
.
dialog
.
finished
.
connect
(
self
.
_SH_DialogFinished
)
self
.
dialog
.
accepted
.
connect
(
self
.
_SH_DialogAccepted
)
self
.
dialog
.
rejected
.
connect
(
self
.
_SH_DialogRejected
)
def
__eq__
(
self
,
other
):
return
self
is
other
...
...
@@ -5200,13 +5194,11 @@ class IncomingFileTransferRequest(QObject):
def
__ge__
(
self
,
other
):
return
self
.
priority
>=
other
.
priority
def
_SH_DialogFinished
(
self
):
def
_SH_DialogFinished
(
self
,
result
):
self
.
finished
.
emit
(
self
)
def
_SH_DialogAccepted
(
self
):
if
result
==
QDialog
.
Accepted
:
self
.
accepted
.
emit
(
self
)
def
_SH_DialogRejected
(
self
):
elif
result
==
QDialog
.
Rejected
:
self
.
rejected
.
emit
(
self
,
self
.
dialog
.
reject_mode
)
...
...
@@ -5261,8 +5253,6 @@ class IncomingCallTransferRequest(QObject):
self
.
dialog
.
transfer_label
.
setText
(
u'would like to transfer you to {.uri}'
.
format
(
contact_uri
))
self
.
dialog
.
finished
.
connect
(
self
.
_SH_DialogFinished
)
self
.
dialog
.
accepted
.
connect
(
self
.
_SH_DialogAccepted
)
self
.
dialog
.
rejected
.
connect
(
self
.
_SH_DialogRejected
)
def
__eq__
(
self
,
other
):
return
self
is
other
...
...
@@ -5282,13 +5272,11 @@ class IncomingCallTransferRequest(QObject):
def
__ge__
(
self
,
other
):
return
self
.
priority
>=
other
.
priority
def
_SH_DialogFinished
(
self
):
def
_SH_DialogFinished
(
self
,
result
):
self
.
finished
.
emit
(
self
)
def
_SH_DialogAccepted
(
self
):
if
result
==
QDialog
.
Accepted
:
self
.
accepted
.
emit
(
self
)
def
_SH_DialogRejected
(
self
):
elif
result
==
QDialog
.
Rejected
:
self
.
rejected
.
emit
(
self
,
self
.
dialog
.
reject_mode
)
...
...
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