Skip to content

Commit

Permalink
Tiny code style improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasKroes committed Dec 18, 2024
1 parent da5be94 commit 1e2caa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ManiVault/src/private/ActionsManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<int>(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("");
Expand Down

0 comments on commit 1e2caa9

Please sign in to comment.