Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mobile Datovka
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Datovka projects
mobile Datovka
Commits
b64ca298
Commit
b64ca298
authored
Nov 21, 2018
by
Martin Straka
Committed by
Karel Slaný
Nov 22, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed load records management settings
parent
f7fd19bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
8 deletions
+9
-8
src/main.cpp
src/main.cpp
+9
-8
No files found.
src/main.cpp
View file @
b64ca298
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment