make lint
This commit is contained in:
parent
9616ee51b3
commit
2dc7492456
@ -284,7 +284,8 @@ InputBar::updateTextContentProperties(const QString &t)
|
|||||||
QStringLiteral("goto"),
|
QStringLiteral("goto"),
|
||||||
QStringLiteral("converttodm"),
|
QStringLiteral("converttodm"),
|
||||||
QStringLiteral("converttoroom")};
|
QStringLiteral("converttoroom")};
|
||||||
bool hasInvalidCommand = !commandName.isNull() && '/' + commandName != text() && !validCommands.contains(commandName);
|
bool hasInvalidCommand =
|
||||||
|
!commandName.isNull() && '/' + commandName != text() && !validCommands.contains(commandName);
|
||||||
|
|
||||||
bool signalsChanged{false};
|
bool signalsChanged{false};
|
||||||
if (containsInvalidCommand_ != hasInvalidCommand) {
|
if (containsInvalidCommand_ != hasInvalidCommand) {
|
||||||
@ -393,8 +394,7 @@ InputBar::send()
|
|||||||
|
|
||||||
if (auto [commandName, args] = getCommandAndArgs(); commandName.isEmpty())
|
if (auto [commandName, args] = getCommandAndArgs(); commandName.isEmpty())
|
||||||
message(text());
|
message(text());
|
||||||
else
|
else if (!command(commandName, args))
|
||||||
if (!command(commandName, args))
|
|
||||||
message(text());
|
message(text());
|
||||||
|
|
||||||
if (!wasEdit) {
|
if (!wasEdit) {
|
||||||
|
Loading…
Reference in New Issue
Block a user