Skip to content
Snippets Groups Projects
Verified Commit 3576589e authored by Nicolas Werner's avatar Nicolas Werner
Browse files

Fix crash in slash completer

parent 485babba
No related branches found
No related tags found
No related merge requests found
Pipeline #3934 passed
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment