Fixed a regression introduced by my previous bug fix.

This commit is contained in:
Raoul Snyman 2012-09-02 16:37:43 +02:00
parent 558e344c51
commit 9f6b6b99f3
1 changed files with 7 additions and 2 deletions

View File

@ -103,8 +103,13 @@ class OpenLP(QtGui.QApplication):
Run the OpenLP application.
"""
self.eventLoopIsActive = False
# On Windows, the args passed into the constructor are
# ignored. Not very handy, so set the ones we want to use.
# On Windows, the args passed into the constructor are ignored. Not
# very handy, so set the ones we want to use. On Linix and FreeBSD, in
# order to set the WM_CLASS property for X11, we pass "OpenLP" in as a
# command line argument. This interferes with files being passed in as
# command line arguments, so we remove it from the list.
if 'OpenLP' in args:
args.remove('OpenLP')
self.args.extend(args)
# provide a listener for widgets to reqest a screen update.
QtCore.QObject.connect(Receiver.get_receiver(),