mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-01-23 10:19:58 +01:00
no qt version check needed to disable randomisation of hashes
This commit is contained in:
@@ -165,13 +165,9 @@ void delete_old_log_files(int days)
|
|||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
// before creating Application:
|
// before creating Application:
|
||||||
// export environment-variable "QT_HASH_SEED" with value "1" for Qt5 and "0" for Qt6
|
// export environment-variable "QT_HASH_SEED" with value "0" to
|
||||||
// to have "clean" XML-diffs:
|
// disable radomisation for hashes in order to obtain "clean" XML-diffs:
|
||||||
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0) // ### Qt 6: remove
|
|
||||||
qputenv("QT_HASH_SEED", "1");
|
|
||||||
#else
|
|
||||||
qputenv("QT_HASH_SEED", "0");
|
qputenv("QT_HASH_SEED", "0");
|
||||||
#endif
|
|
||||||
//Some setup, notably to use with QSetting.
|
//Some setup, notably to use with QSetting.
|
||||||
QCoreApplication::setOrganizationName("QElectroTech");
|
QCoreApplication::setOrganizationName("QElectroTech");
|
||||||
QCoreApplication::setOrganizationDomain("qelectrotech.org");
|
QCoreApplication::setOrganizationDomain("qelectrotech.org");
|
||||||
|
|||||||
Reference in New Issue
Block a user