- Core::instance(); // create and init the core
- _coreCreated = true;
-
-#ifdef HAVE_KDE
- // if using KDE, option is called "restore" instead of "norestore"
- if(Quassel::isOptionSet("restore"))
-#else
- if(!Quassel::isOptionSet("norestore"))
-#endif
- Core::restoreState();
-
- return true;
-}
-
-/*****************************************************************************/
-
-CoreApplication::CoreApplication(int &argc, char **argv)
-#ifdef HAVE_KDE
-: KApplication(false), Quassel() {
- Q_UNUSED(argc); Q_UNUSED(argv);
-#else
-: QCoreApplication(argc, argv), Quassel() {
-#endif
+void CoreApplication::init()
+{
+ if (!Quassel::init()) {
+ throw ExitException{EXIT_FAILURE, tr("Could not initialize Quassel!")};
+ }