Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
gajim
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Weblate
gajim
Commits
607f1374
Commit
607f1374
authored
18 years ago
by
Yann Leboulanger
Browse files
Options
Downloads
Patches
Plain Diff
don't re-open file transfert dialog when a transfert is finished. fixes #3002
parent
0bacc773
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/filetransfers_window.py
+0
-8
0 additions, 8 deletions
src/filetransfers_window.py
with
0 additions
and
8 deletions
src/filetransfers_window.py
+
0
−
8
View file @
607f1374
...
...
@@ -144,8 +144,6 @@ class FileTransfersWindow:
def
show_completed
(
self
,
jid
,
file_props
):
'''
show a dialog saying that file (file_props) has been transferred
'''
self
.
window
.
present
()
self
.
window
.
window
.
focus
()
def
on_open
(
widget
,
file_props
):
dialog
.
destroy
()
if
not
file_props
.
has_key
(
'
file-name
'
):
...
...
@@ -199,23 +197,17 @@ class FileTransfersWindow:
def
show_request_error
(
self
,
file_props
):
'''
show error dialog to the recipient saying that transfer
has been canceled
'''
self
.
window
.
present
()
self
.
window
.
window
.
focus
()
dialogs
.
InformationDialog
(
_
(
'
File transfer cancelled
'
),
_
(
'
Connection with peer cannot be established.
'
))
self
.
tree
.
get_selection
().
unselect_all
()
def
show_send_error
(
self
,
file_props
):
'''
show error dialog to the sender saying that transfer
has been canceled
'''
self
.
window
.
present
()
self
.
window
.
window
.
focus
()
dialogs
.
InformationDialog
(
_
(
'
File transfer cancelled
'
),
_
(
'
Connection with peer cannot be established.
'
))
self
.
tree
.
get_selection
().
unselect_all
()
def
show_stopped
(
self
,
jid
,
file_props
,
error_msg
=
''
):
self
.
window
.
present
()
self
.
window
.
window
.
focus
()
if
file_props
[
'
type
'
]
==
'
r
'
:
file_name
=
os
.
path
.
basename
(
file_props
[
'
file-name
'
])
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment