changeset 1076:96e448e1cc9f

(issue116) Add error message when selftest failed
author Andre Heinecke <andre.heinecke@intevation.de>
date Thu, 11 Sep 2014 10:26:07 +0200
parents 7e1fd6d96714
children 29e4c8a534a1
files ui/main.cpp
diffstat 1 files changed, 10 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ui/main.cpp	Thu Sep 11 10:18:46 2014 +0200
+++ b/ui/main.cpp	Thu Sep 11 10:26:07 2014 +0200
@@ -83,7 +83,16 @@
      * monitor executable corruptions.
      */
     if (!selftest()) {
-        syslog_error_printf ("Integrity check failed.");
+        syslog_error_printf("Integrity check failed.");
+        MessageBoxW(NULL,
+                L"TrustBridge wurde nach der Installation modifizert.\n"
+                L"Um ihr System zu schützen wurde das starten der Anwendung abgebrochen.\n"
+                L"Bitte installieren Sie TrustBridge erneut.\n\n"
+                L"TrustBridge has been modified after installaton.\n"
+                L"To protect your system the application launch has been aborted.\n"
+                L"Please reinstall TrustBridge.",
+                L"Integritätsprüfung fehlgeschlagen / Integrity check failed.",
+                MB_ICONERROR | MB_OK);
         return -1;
     }
 #endif

http://wald.intevation.org/projects/trustbridge/