Commit 22df3461 authored by Yan's avatar Yan
Browse files

Drag and drop - fix for bug detected in windows

parent 7c7b8dbc
......@@ -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()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment