Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
KAlarm
Commits
2a7e6ae9
Commit
2a7e6ae9
authored
Aug 27, 2020
by
David Jarvie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add debug
parent
46b653ee
Pipeline
#32047
passed with stage
in 19 minutes and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
src/resources/fileresource.cpp
src/resources/fileresource.cpp
+12
-0
No files found.
src/resources/fileresource.cpp
View file @
2a7e6ae9
...
...
@@ -32,6 +32,18 @@ FileResource::~FileResource()
bool
FileResource
::
isValid
()
const
{
#ifdef DEBUG_DETAIL
if
(
!
mSettings
->
isValid
())
qDebug
()
<<
"FileResource::isValid:"
<<
displayId
()
<<
"NO (mSettings)"
;
if
(
mStatus
==
Status
::
NotConfigured
)
qDebug
()
<<
"FileResource::isValid:"
<<
displayId
()
<<
"NO (Not configured)"
;
if
(
mStatus
==
Status
::
Closed
)
qDebug
()
<<
"FileResource::isValid:"
<<
displayId
()
<<
"NO (Closed)"
;
if
(
id
()
<
0
)
qDebug
()
<<
"FileResource::isValid:"
<<
displayId
()
<<
"NO (ID < 0)"
;
if
(
mSettings
->
id
()
!=
id
())
qDebug
()
<<
"FileResource::isValid:"
<<
displayId
()
<<
"NO (ID:"
<<
id
()
<<
mSettings
->
id
()
<<
")"
;
#endif
// The settings ID must not have changed since construction.
return
mSettings
->
isValid
()
&&
mStatus
<
Status
::
Unusable
...
...
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