]> git.lyx.org Git - features.git/commit
With this commit, errors and warnings can use message box even before LyX is properly...
authorAbdelrazak Younes <younes@lyx.org>
Tue, 23 Jan 2007 12:38:20 +0000 (12:38 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Tue, 23 Jan 2007 12:38:20 +0000 (12:38 +0000)
commit6d7cd27910a3f35f722a59da31960f2986e80c7a
tree969ad447a14e3a037e09179ed8476e946602fe79
parent66562be37082a30308a7b3b1ce2a4fa2510840bb
With this commit, errors and warnings can use message box even before LyX is properly initialized. This is especially useful for missing sysdir and/or userdir directory.

* Alert.C:
  - error(): calls error_pimpl() in any case.
  - warning(): calls warning_pimpl() in any case.

* Alert_pimpl.C:
  - error_pimpl(): construct a QApplication if LyX is not initialized yet.
  - warning_pimpl(): ditto.

* lyx_main.C:
  - parse_sysdir(): replace lyxerr with Alert::error().
  - parse_userdir(): ditto.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16823 a592a061-630c-0410-9148-cb99ea01b6c8
src/frontends/Alert.C
src/frontends/qt4/Alert_pimpl.C
src/lyx_main.C
src/lyx_main.h