Make openHelp OS-specific in GuiConfig

This commit is contained in:
Etoh 2013-06-10 19:12:38 +02:00
parent 6fc2cc410e
commit 143bcd6e8f

View File

@ -67,7 +67,12 @@ class ConfigDialog(QtGui.QDialog):
self.runButton.setText("Store configuration and run Syncplay")
def openHelp(self):
self.QtGui.QDesktopServices.openUrl("http://syncplay.pl/guide/")
if sys.platform.startswith('linux'):
self.QtGui.QDesktopServices.openUrl("http://syncplay.pl/guide/linux/")
elif sys.platform.startswith('win'):
self.QtGui.QDesktopServices.openUrl("http://syncplay.pl/guide/windows/")
else:
self.QtGui.QDesktopServices.openUrl("http://syncplay.pl/guide/")
def _tryToFillPlayerPath(self, playerpath, playerpathlist):
foundpath = ""