Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jan Zelenka
prasopes
Commits
22df3461
Commit
22df3461
authored
Sep 17, 2018
by
Yan
Browse files
Drag and drop - fix for bug detected in windows
parent
7c7b8dbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
prasopes/__main__.py
View file @
22df3461
...
...
@@ -54,14 +54,14 @@ def update_spectrum(event, chromatogram, spect, ds,
def
dropped
(
event
,
parent
,
chromatogram
,
spectrum
,
ds
,
ms
,
filename
,
chrom
,
config
):
dropurl
=
event
.
mimeData
().
urls
()[
0
].
path
()
dropurl
=
event
.
mimeData
().
urls
()[
0
].
toLocalFile
()
load_file
(
parent
,
chromatogram
,
spectrum
,
ds
,
ms
,
filename
,
chrom
,
config
,
filename
=
dropurl
)
def
drag_entered
(
event
):
if
event
.
mimeData
().
hasUrls
()
and
event
.
mimeData
().
urls
()[
0
]
\
.
path
().
lower
().
endswith
(
'.raw'
):
.
toLocalFile
().
lower
().
endswith
(
'.raw'
):
event
.
accept
()
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment