Simplify code a bit

This commit is contained in:
Loren Burkholder 2023-02-27 18:12:19 -05:00
parent 22ac5d861e
commit b4f8d4947f
3 changed files with 1 additions and 5 deletions

View file

@ -167,7 +167,6 @@ Item {
}
MessageInput {
id: input
}
}

View file

@ -184,8 +184,6 @@ public slots:
void setSearchString(const QString &s);
QString searchString() const { return searchString_; }
bool hasCompletion() const { return rowCount() > 0; }
signals:
void newSearchString(QString);

View file

@ -390,8 +390,7 @@ InputBar::send()
auto wasEdit = !room->edit().isEmpty();
auto [commandName, args] = getCommandAndArgs();
if (commandName.isNull())
if (auto [commandName, args] = getCommandAndArgs(); commandName.isNull())
message(text());
else
command(commandName, args);