diff --git a/imports/NeoChat/Component/ChatBox/ChatBar.qml b/imports/NeoChat/Component/ChatBox/ChatBar.qml index 8f750b75a..97c4f3834 100644 --- a/imports/NeoChat/Component/ChatBox/ChatBar.qml +++ b/imports/NeoChat/Component/ChatBox/ChatBar.qml @@ -361,7 +361,7 @@ ToolBar { function complete() { documentHandler.replaceAutoComplete(completionMenu.currentDisplayText); - if (completionMenu.completionType == "username") { + if (completionMenu.completionType === "username") { userAutocompleted[completionMenu.currentDisplayText] = completionMenu.currentUserId; } } diff --git a/imports/NeoChat/Component/ChatBox/CompletionMenu.qml b/imports/NeoChat/Component/ChatBox/CompletionMenu.qml index 2ed761504..929e23b05 100644 --- a/imports/NeoChat/Component/ChatBox/CompletionMenu.qml +++ b/imports/NeoChat/Component/ChatBox/CompletionMenu.qml @@ -50,11 +50,11 @@ Popup { id: completionListView implicitWidth: contentWidth delegate: { - if (completionType == "emoji") { + if (completionType === "emoji") { emojiDelegate - } else if (completionType == "command") { + } else if (completionType === "command") { commandDelegate - } else if (completionType == "username") { + } else if (completionType === "username") { usernameDelegate } } diff --git a/src/commandmodel.h b/src/commandmodel.h index 43842d43a..e27a8cb83 100644 --- a/src/commandmodel.h +++ b/src/commandmodel.h @@ -48,7 +48,7 @@ Q_DECLARE_METATYPE(Command) class CommandModel : public QObject { -Q_OBJECT + Q_OBJECT public: explicit CommandModel(QObject *parent = nullptr)