MINGW-packages/mingw-w64-cppcheck/001-cppcheck-2.2-change-language-files-path.patch
Wolfgang Stöggl 64dbb2d1ef cppcheck: Update to 2.2
- Update patches:
  001-cppcheck-2.2-change-language-files-path.patch
  002-cppcheck-2.2-change-cfg-path.patch
- Add patch:
  003-cppcheck-2.2-online-help.patch
  Allows building of online-help.qhc and fixes:
  Helpfile 'online-help.qhc' was not found
2020-10-17 18:26:20 +02:00

12 lines
525 B
Diff

--- a/gui/translationhandler.cpp 2020-10-03 11:05:53.000000000 +0200
+++ b/gui/translationhandler.cpp 2020-10-17 17:51:44.033531900 +0200
@@ -111,7 +111,7 @@
//Load the new language
const QString appPath = QFileInfo(QCoreApplication::applicationFilePath()).canonicalPath();
- QString datadir = getDataDir();
+ QString datadir = appPath + "/../share/cppcheck/lang/";
QString translationFile;
if (QFile::exists(datadir + "/lang/" + mTranslations[index].mFilename + ".qm"))