]> git.lyx.org Git - lyx.git/commit
Fix hang on exit under Windows.
authorAbdelrazak Younes <younes@lyx.org>
Sun, 28 May 2006 22:10:33 +0000 (22:10 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sun, 28 May 2006 22:10:33 +0000 (22:10 +0000)
commitd1d896e23ca87dcbcbf0ef0c53b62b8365438f19
tree9dc0036e6f536f0b1f7a1329e3218586ada9ba44
parent32a51961ae373c46f9cde06db3ccfe0a70bd6052
Fix hang on exit under Windows.
TODO: reorganize this code. In particular make sure that this advise from Qt documentation is respected:

Since the QApplication object does so much initialization, it must be created before any other objects related to the user interface are created.

Right now this is not the case. For example, "FontLoader::initFontPath()" is called before the QApplication creation. Moreover, I suspect that a number of global variables contains Qt object that are initialized before the passage through parse_init(). This might also explain the message displayed by Qt that caused the hanging:

QObject::killTimer: timers cannot be stopped from another thread

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@13948 a592a061-630c-0410-9148-cb99ea01b6c8
src/frontends/qt4/lyx_gui.C