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
ed7aaf8d
Commit
ed7aaf8d
authored
Mar 25, 2014
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow incoming file transfer dialogs to be ignored by pressing Esc
parent
53211ad7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
sessions.py
blink/sessions.py
+9
-3
No files found.
blink/sessions.py
View file @
ed7aaf8d
...
...
@@ -4751,6 +4751,8 @@ class IncomingFileTransferDialog(base_class, ui_class):
font
.
setPointSizeF
(
self
.
uri_label
.
fontInfo
()
.
pointSizeF
()
-
1
)
self
.
file_label
.
setFont
(
font
)
self
.
position
=
None
self
.
reject_mode
=
'ignore'
self
.
reject_button
.
released
.
connect
(
self
.
_set_reject_mode
)
def
show
(
self
,
activate
=
True
,
position
=
1
):
blink
=
QApplication
.
instance
()
...
...
@@ -4780,6 +4782,9 @@ class IncomingFileTransferDialog(base_class, ui_class):
self
.
setAttribute
(
Qt
.
WA_ShowWithoutActivating
,
not
activate
)
super
(
IncomingFileTransferDialog
,
self
)
.
show
()
def
_set_reject_mode
(
self
):
self
.
reject_mode
=
'reject'
del
ui_class
,
base_class
...
...
@@ -4837,7 +4842,7 @@ class IncomingFileTransferRequest(QObject):
self
.
accepted
.
emit
(
self
)
def
_SH_DialogRejected
(
self
):
self
.
rejected
.
emit
(
self
)
self
.
rejected
.
emit
(
self
,
self
.
reject_mode
)
ui_class
,
base_class
=
uic
.
loadUiType
(
Resources
.
get
(
'conference_dialog.ui'
))
...
...
@@ -5154,12 +5159,13 @@ class SessionManager(object):
self
.
file_transfers
.
append
(
transfer
)
transfer
.
init_incoming
(
incoming_request
.
contact
,
incoming_request
.
contact_uri
,
incoming_request
.
session
,
incoming_request
.
stream
)
def
_SH_IncomingFileTransferRequestRejected
(
self
,
incoming_request
):
def
_SH_IncomingFileTransferRequestRejected
(
self
,
incoming_request
,
mode
):
if
incoming_request
.
dialog
.
position
is
not
None
:
bisect
.
insort_left
(
self
.
dialog_positions
,
incoming_request
.
dialog
.
position
)
self
.
incoming_requests
.
remove
(
incoming_request
)
self
.
update_ringtone
()
incoming_request
.
session
.
reject
(
603
)
if
mode
==
'reject'
:
incoming_request
.
session
.
reject
(
603
)
@
run_in_gui_thread
def
handle_notification
(
self
,
notification
):
...
...
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