[PC-BSD Commits] r7907 - pcbsd/current/src-qt4/pc-crashhandler

svn at pcbsd.org svn at pcbsd.org
Tue Oct 26 09:33:44 PDT 2010


Author: kris
Date: 2010-10-26 09:33:44 -0700 (Tue, 26 Oct 2010)
New Revision: 7907

Modified:
   pcbsd/current/src-qt4/pc-crashhandler/main.cpp
Log:

Updated pc-crashhandler to use PREFIX / config.h



Modified: pcbsd/current/src-qt4/pc-crashhandler/main.cpp
===================================================================
--- pcbsd/current/src-qt4/pc-crashhandler/main.cpp	2010-10-26 16:32:45 UTC (rev 7906)
+++ pcbsd/current/src-qt4/pc-crashhandler/main.cpp	2010-10-26 16:33:44 UTC (rev 7907)
@@ -5,6 +5,7 @@
 #include <QDebug>
 #include <QFile>
 #include "crashhandler.h"
+#include "../config.h"
 
 int main( int argc, char ** argv )
 {
@@ -13,9 +14,9 @@
     QTranslator translator;
     QLocale mylocale;
     QString langCode = mylocale.name();
-    if ( ! QFile::exists("/usr/local/share/pcbsd/i18n/CrashHandler_" + langCode + ".qm" ) )
+    if ( ! QFile::exists( PREFIX + "/share/pcbsd/i18n/CrashHandler_" + langCode + ".qm" ) )
       langCode.truncate(langCode.indexOf("_"));
-    translator.load( QString("CrashHandler_") + langCode, "/usr/local/share/pcbsd/i18n/" );
+    translator.load( QString("CrashHandler_") + langCode, PREFIX + "/share/pcbsd/i18n/" );
     a.installTranslator( &translator );
     qDebug() << "Locale:" << langCode;
     



More information about the Commits mailing list