Commit b64ca298 authored by Martin Straka's avatar Martin Straka Committed by Karel Slaný

Fixed load records management settings

parent f7fd19bc
......@@ -326,6 +326,15 @@ int main(int argc, char *argv[])
return EXIT_FAILURE;
}
/* Create and init global records management settings. */
GlobInstcs::recMgmtSetPtr =
new (std::nothrow) RecordsManagementSettings;
if (GlobInstcs::recMgmtSetPtr == Q_NULLPTR) {
logErrorNL("%s",
"Cannot create records management settings.");
return EXIT_FAILURE;
}
/* Load application settings from storage. */
QSettings settings(Settings::settingsPath(),
QSettings::IniFormat);
......@@ -379,14 +388,6 @@ int main(int argc, char *argv[])
return EXIT_FAILURE;
}
GlobInstcs::recMgmtSetPtr =
new (std::nothrow) RecordsManagementSettings;
if (GlobInstcs::recMgmtSetPtr == Q_NULLPTR) {
logErrorNL("%s",
"Cannot create records management settings.");
return EXIT_FAILURE;
}
GlobInstcs::recMgmtDbPtr = new (std::nothrow)
RecordsManagementDb("recordsManagementDb", false);
if (GlobInstcs::recMgmtDbPtr == Q_NULLPTR) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment