mirror of
https://github.com/Syncplay/syncplay
synced 2025-02-17 19:36:51 +00:00
Support filedropping in Linux
This commit is contained in:
parent
afe3290f0a
commit
4f196f583a
@ -165,7 +165,10 @@ class ConfigDialog(QtGui.QDialog):
|
||||
data = event.mimeData()
|
||||
urls = data.urls()
|
||||
if (urls and urls[0].scheme() == 'file'):
|
||||
dropfilepath = unicode(urls[0].path())[1:]
|
||||
if sys.platform.startswith('linux'):
|
||||
dropfilepath = unicode(urls[0].path())
|
||||
else:
|
||||
dropfilepath = unicode(urls[0].path())[1:] # Removes starting slash
|
||||
if dropfilepath[-4:] == ".exe":
|
||||
self.executablepathCombobox.setEditText(dropfilepath)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user