From b6ef00b5ee14bd0adc85c3a98bb8a127f79932ea Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Thu, 23 Feb 2023 21:57:53 -0500 Subject: 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. --- src/CompletionProxyModel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/CompletionProxyModel.h') 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); -- cgit 1.5.1