Fix crash in slash completer

This commit is contained in:
Nicolas Werner 2022-11-09 16:38:17 +01:00
parent 485babba14
commit 3576589ea7
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
1 changed files with 2 additions and 2 deletions

View File

@ -445,8 +445,8 @@ TimelineViewManager::completerFor(const QString &completerName, const QString &r
stickerModel->setParent(proxy);
return proxy;
} else if (completerName == QLatin1String("command")) {
static auto commandCompleter = new CommandCompleter();
auto proxy = new CompletionProxyModel(commandCompleter);
auto commandCompleter = new CommandCompleter();
auto proxy = new CompletionProxyModel(commandCompleter);
commandCompleter->setParent(proxy);
return proxy;
}