mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-01 01:00:53 +01:00
Modification du comportement de l'application : si les variables de compilation QET_LANG_PATH et QET_COMMON_COLLECTION_PATH ne sont pas definies, celle-ci recherche desormais le repertoire des traductions et le repertoire de la collection commune relativement au dossier contenant l'executable.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@632 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -267,7 +267,7 @@ QString QETApp::commonElementsDir() {
|
||||
#ifdef QET_COMMON_COLLECTION_PATH
|
||||
return(QUOTE(QET_COMMON_COLLECTION_PATH));
|
||||
#else
|
||||
return(QDir::current().path() + "/elements/");
|
||||
return(QCoreApplication::applicationDirPath() + "/elements/");
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -412,7 +412,7 @@ QString QETApp::languagesPath() {
|
||||
return(lang_dir);
|
||||
} else {
|
||||
#ifndef QET_LANG_PATH
|
||||
return(QDir::current().path() + "/lang/");
|
||||
return(QCoreApplication::applicationDirPath() + "/lang/");
|
||||
#else
|
||||
return(QUOTE(QET_LANG_PATH));
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user