// all string literals are UTF-8
// QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
-#ifdef APP_INTEGRITY
- if (Extra::integrityCheck())
-#endif
- showWindow(app, dataDir);
+ showWindow(app, dataDir);
return app.exec();
}
JsFunctions::instance();
- checkForUpdate();
-
// Hack to give focus to searchlineedit
QMetaObject::invokeMethod(views->currentWidget(), "appear");
View* view = qobject_cast<View *> (views->currentWidget());
QString desc = view->metadata().value("description").toString();
if (!desc.isEmpty()) showMessage(desc);
+#ifdef APP_INTEGRITY
+ if (!Extra::integrityCheck()) {
+ deleteLater();
+ return;
+ }
+#endif
+
ChannelAggregator::instance()->start();
+
+ checkForUpdate();
}
void MainWindow::changeEvent(QEvent *e) {