Commit a88f82e9 authored by Laurent Montel's avatar Laurent Montel
Browse files

Show warning only if two strings is empty

parent 94b198ef
Pipeline #218736 passed with stage
in 12 minutes and 58 seconds
......@@ -18,7 +18,7 @@ StatusBarLabelToggledState::~StatusBarLabelToggledState() = default;
void StatusBarLabelToggledState::setStateString(const QString &toggled, const QString &untoggled)
{
if (toggled.isEmpty() || untoggled.isEmpty()) {
if (toggled.isEmpty() && untoggled.isEmpty()) {
qCWarning(MESSAGECOMPOSER_LOG) << " State string is empty. Need to fix it";
}
mToggled = toggled;
......
Supports Markdown
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