mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Fix crash in slash completer
This commit is contained in:
parent
485babba14
commit
3576589ea7
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue