Commit 2a7e6ae9 authored by David Jarvie's avatar David Jarvie
Browse files

Add debug

parent 46b653ee
Pipeline #32047 passed with stage
in 19 minutes and 8 seconds
......@@ -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
......
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