summary refs log tree commit diff
path: root/src/CompletionProxyModel.h
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2023-02-23 21:57:53 -0500
committerLoren Burkholder <computersemiexpert@outlook.com>2023-02-28 20:10:25 -0500
commitb6ef00b5ee14bd0adc85c3a98bb8a127f79932ea (patch)
treedf09acee8f648cea85aa75bfcd43b6f247e8cc81 /src/CompletionProxyModel.h
parentEnhance appearance of room ping warning (diff)
downloadnheko-b6ef00b5ee14bd0adc85c3a98bb8a127f79932ea.tar.xz
Show warning when invalid command is entered
Fixes #1363

Please note that this doesn't prompt when you try to send a message with a bad command.
Diffstat (limited to 'src/CompletionProxyModel.h')
-rw-r--r--src/CompletionProxyModel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/CompletionProxyModel.h b/src/CompletionProxyModel.h

index e0f00788..90daf7ad 100644 --- a/src/CompletionProxyModel.h +++ b/src/CompletionProxyModel.h
@@ -184,6 +184,8 @@ public slots: void setSearchString(const QString &s); QString searchString() const { return searchString_; } + bool hasCompletion() const { return rowCount() > 0; } + signals: void newSearchString(QString);