qt4-b-gone: Reorganize the initialization sequence
authorManuel Nickschas <sputnick@quassel-irc.org>
Thu, 26 Jul 2018 19:21:40 +0000 (21:21 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 18 Nov 2018 10:06:43 +0000 (11:06 +0100)
commit4e43a17088e8ff76c220bd8b4ebf37d9dbb4863a
treee6e22ceba659b5c0d5e34d476a1057eaa2c2c9a6
parentd12487a0a00641429ab1358675843d61d4370b64
qt4-b-gone: Reorganize the initialization sequence

KDE4 required special handling during initialization, because command
line arguments needed to be parsed before instantiating the
application object. Since this is no longer required, the sequence
can now be simplified.

To prepare for enabling early translations (also for the CLI parser),
instantiate the application first, then explicitly initialize the
Quassel instance in main() (which will later both load translations,
and handle CLI options). Only then also initialize the application
itself.

Since initialization errors are handled by exceptions anyway, get rid
of the return values for the various init() methods, too.
src/common/logger.cpp
src/common/logger.h
src/common/main.cpp
src/common/quassel.cpp
src/common/quassel.h
src/core/coreapplication.cpp
src/qtui/monoapplication.cpp
src/qtui/qtuiapplication.cpp