From 8c7ef64fabb4cfc0d321fd04f7722d6ea67b3610 Mon Sep 17 00:00:00 2001 From: frostasm Date: Sun, 12 Nov 2017 14:34:13 +0200 Subject: [PATCH] Show "Can't resolve placeholder" warning only in debug mode --- src/core/Entry.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/Entry.cpp b/src/core/Entry.cpp index 53a1ad225..9dd019d56 100644 --- a/src/core/Entry.cpp +++ b/src/core/Entry.cpp @@ -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();