Show "Can't resolve placeholder" warning only in debug mode

This commit is contained in:
frostasm 2017-11-12 14:34:13 +02:00
parent fb6636d182
commit 8c7ef64fab

View File

@ -730,8 +730,10 @@ QString Entry::resolvePlaceholderRecursive(const QString &placeholder, int maxDe
case PlaceholderType::NotPlaceholder:
return placeholder;
case PlaceholderType::Unknown:
qWarning("Can't resolve placeholder %s for entry with uuid %s", qPrintable(placeholder),
qPrintable(uuid().toHex()));
#ifdef QT_DEBUG
qWarning("Can't resolve placeholder \"%s\" for entry with title: \"%s\" (uuid \"%s\") ",
qPrintable(placeholder), qPrintable(title()), qPrintable(uuid().toHex()));
#endif
return placeholder;
case PlaceholderType::Title:
return title();