From 1e2caa94cb680e07e0ea436c02839b16259efc95 Mon Sep 17 00:00:00 2001 From: Thomas Kroes Date: Wed, 18 Dec 2024 12:39:41 +0100 Subject: [PATCH] Tiny code style improvement --- ManiVault/src/private/ActionsManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ManiVault/src/private/ActionsManager.cpp b/ManiVault/src/private/ActionsManager.cpp index aee8a5be0..3bbc56ed2 100644 --- a/ManiVault/src/private/ActionsManager.cpp +++ b/ManiVault/src/private/ActionsManager.cpp @@ -188,7 +188,7 @@ bool ActionsManager::publishPrivateAction(WidgetAction* privateAction, const QSt const auto nameChanged = [&nameAction, &actionsFilterModel, widget]() -> void { const auto isDuplicateName = !actionsFilterModel.match(actionsFilterModel.index(0, static_cast(AbstractActionsModel::Column::Name)), Qt::DisplayRole, nameAction.getString(), -1, Qt::MatchFlag::MatchExactly).isEmpty(); - if (nameAction.getString().isEmpty() ? true : isDuplicateName ? true : false) + if (nameAction.getString().isEmpty() ? true : isDuplicateName) widget->setStyleSheet("color: red;"); else widget->setStyleSheet("");