forked from openlp/openlp
Disable commandline parsing for Windows, it don't work
This commit is contained in:
parent
2cce748d20
commit
221fa3b8b6
@ -116,6 +116,8 @@ class OpenLP(QtGui.QApplication):
|
|||||||
# make sure Qt really display the splash screen
|
# make sure Qt really display the splash screen
|
||||||
self.processEvents()
|
self.processEvents()
|
||||||
# start the main app window
|
# start the main app window
|
||||||
|
print self.applicationFilePath()
|
||||||
|
print self.arguments()[1]
|
||||||
self.mainWindow = MainWindow(screens, self.clipboard(),
|
self.mainWindow = MainWindow(screens, self.clipboard(),
|
||||||
self.arguments())
|
self.arguments())
|
||||||
self.mainWindow.show()
|
self.mainWindow.show()
|
||||||
|
@ -663,7 +663,11 @@ class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
|
|||||||
if self.liveController.display.isVisible():
|
if self.liveController.display.isVisible():
|
||||||
self.liveController.display.setFocus()
|
self.liveController.display.setFocus()
|
||||||
self.activateWindow()
|
self.activateWindow()
|
||||||
if len(self.arguments) > 0:
|
# On Windows, arguments contains the entire commandline
|
||||||
|
# So args[0]=='python' args[1]=='openlp.pyw'
|
||||||
|
# Therefore this approach is not going to work
|
||||||
|
# Bypass for now.
|
||||||
|
if len(self.arguments) and os.name != u'nt':
|
||||||
args = []
|
args = []
|
||||||
for a in self.arguments:
|
for a in self.arguments:
|
||||||
args.extend([a])
|
args.extend([a])
|
||||||
|
Loading…
Reference in New Issue
Block a user