openFile hopefully now fully implemented in gui.py

This commit is contained in:
Etoh 2013-06-12 19:00:20 +02:00
parent d919a8c9e4
commit 43613aabd5

View File

@ -312,8 +312,8 @@ class MainWindow(QtGui.QMainWindow):
if sys.platform.startswith('linux'):
dropfilepath = unicode(urls[0].path())
else:
dropfilepath = unicode(urls[0].path())[1:] # Removes starting slash
self._syncplayClient.openFile(dropfilepath)
dropfilepath = unicode(urls[0].path().replace("/","\\"))[1:] # Removes starting slash
self._syncplayClient._player.openFile(dropfilepath)
def saveSettings(self):
settings = QSettings("Syncplay", "MainWindow")