Make openHelp OS-specific in Main GUI

This commit is contained in:
Etoh 2013-06-10 19:14:09 +02:00
parent 143bcd6e8f
commit e8cd6ac41d

View File

@ -111,6 +111,11 @@ class MainWindow(QtGui.QMainWindow):
self.showMessage("Invalid offset value", True)
def openUserGuide(self):
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 addTopLayout(self, window):