Mercurial > trustbridge
comparison ui/main.cpp @ 939:574cd1fae1dc
Only do selftest on Windows
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Fri, 22 Aug 2014 19:55:08 +0200 |
parents | 59fc7ececa5f |
children | 561cc777e0b6 |
comparison
equal
deleted
inserted
replaced
938:15f7b3ebf21b | 939:574cd1fae1dc |
---|---|
52 Q_IMPORT_PLUGIN(QXcbIntegrationPlugin) | 52 Q_IMPORT_PLUGIN(QXcbIntegrationPlugin) |
53 #endif | 53 #endif |
54 | 54 |
55 int main(int argc, char **argv) | 55 int main(int argc, char **argv) |
56 { | 56 { |
57 /* First verify integrity even before calling QApplication*/ | 57 #ifdef WIN32 |
58 /* First verify integrity even before calling QApplication. | |
59 * We only do this on Windows as we have a PKCS#7 embedded | |
60 * signature there which we check with OS methods. | |
61 * | |
62 * On GNU/Linux platforms you should use an IDS system to | |
63 * monitor executable corruptions. | |
64 */ | |
58 if (!selftest()) { | 65 if (!selftest()) { |
59 syslog_error_printf ("Integrity check failed."); | 66 syslog_error_printf ("Integrity check failed."); |
60 #ifdef RELEASE_BUILD | 67 #ifdef RELEASE_BUILD |
61 return -1; | 68 return -1; |
62 #endif | 69 #endif |
63 } | 70 } |
71 #endif | |
64 | 72 |
65 QApplication app (argc, argv); | 73 QApplication app (argc, argv); |
66 | 74 |
67 QApplication::setQuitOnLastWindowClosed(false); | 75 QApplication::setQuitOnLastWindowClosed(false); |
68 QApplication::setOrganizationName(QString::fromLatin1(ORGANIZATION)); | 76 QApplication::setOrganizationName(QString::fromLatin1(ORGANIZATION)); |