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
53211ad7
Commit
53211ad7
authored
Mar 25, 2014
by
Dan Pascu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed file transfer menu entry
parent
4731941c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
filetransferwindow.py
blink/filetransferwindow.py
+3
-3
No files found.
blink/filetransferwindow.py
View file @
53211ad7
...
...
@@ -39,7 +39,7 @@ class FileTransferWindow(base_class, ui_class):
self
.
context_menu
=
QMenu
(
self
.
listview
)
self
.
actions
=
ContextMenuActions
()
self
.
actions
.
open_file
=
QAction
(
"Open"
,
self
,
triggered
=
self
.
_AH_OpenFile
)
self
.
actions
.
open_f
older
=
QAction
(
"Open Containing Folder"
,
self
,
triggered
=
self
.
_AH_OpenContaining
Folder
)
self
.
actions
.
open_f
ile_folder
=
QAction
(
"Open File Folder"
,
self
,
triggered
=
self
.
_AH_OpenFile
Folder
)
self
.
actions
.
cancel_transfer
=
QAction
(
"Cancel"
,
self
,
triggered
=
self
.
_AH_CancelTransfer
)
self
.
actions
.
remove_entry
=
QAction
(
"Remove From List"
,
self
,
triggered
=
self
.
_AH_RemoveEntry
)
self
.
actions
.
open_downloads_folder
=
QAction
(
"Open Downloads Folder"
,
self
,
triggered
=
self
.
_AH_OpenDownloadsFolder
)
...
...
@@ -85,7 +85,7 @@ class FileTransferWindow(base_class, ui_class):
if
item
.
ended
:
if
item
.
direction
==
'incoming'
and
item
.
ended
and
not
item
.
failed
:
menu
.
addAction
(
self
.
actions
.
open_file
)
menu
.
addAction
(
self
.
actions
.
open_folder
)
menu
.
addAction
(
self
.
actions
.
open_f
ile_f
older
)
menu
.
addAction
(
self
.
actions
.
remove_entry
)
else
:
menu
.
addAction
(
self
.
actions
.
cancel_transfer
)
...
...
@@ -103,7 +103,7 @@ class FileTransferWindow(base_class, ui_class):
item
=
self
.
listview
.
selectedIndexes
()[
0
]
.
data
(
Qt
.
UserRole
)
QDesktopServices
.
openUrl
(
QUrl
.
fromLocalFile
(
item
.
filename
))
def
_AH_Open
Containing
Folder
(
self
):
def
_AH_Open
File
Folder
(
self
):
item
=
self
.
listview
.
selectedIndexes
()[
0
]
.
data
(
Qt
.
UserRole
)
QDesktopServices
.
openUrl
(
QUrl
.
fromLocalFile
(
os
.
path
.
dirname
(
item
.
filename
)))
...
...
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