Scenario:
- Unpack UGENE
- Remove transl_en.qm translation file from root directory
- Run ugeneui.exe
Expected state: Error message about missed files translation
Actuel state: Crash
There is a loop in the Main.cpp (line ~500) :
....
QString transFile[] =
Unknown macro: { userAppSettings->getTranslationFile(), "transl_en"}
;
for (int i = transFile[0].isEmpty() ? 1 : 0; i < 3; ++i)
Unknown macro:Unknown macro: { if (!translator.load(transFile[i], AppContext}else
Unknown macro:
Unknown macro: { settings->setValue("UGENE_CURR_TRANSL", transFile[i].right(2)); trOK = true; break; }
}
...
The problem is that loop is 0...2, but array is 0...1
In case transl_*.qm files are in not-current directory, the ugeneui crashed.