mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 11:00:48 +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);
|
stickerModel->setParent(proxy);
|
||||||
return proxy;
|
return proxy;
|
||||||
} else if (completerName == QLatin1String("command")) {
|
} else if (completerName == QLatin1String("command")) {
|
||||||
static auto commandCompleter = new CommandCompleter();
|
auto commandCompleter = new CommandCompleter();
|
||||||
auto proxy = new CompletionProxyModel(commandCompleter);
|
auto proxy = new CompletionProxyModel(commandCompleter);
|
||||||
commandCompleter->setParent(proxy);
|
commandCompleter->setParent(proxy);
|
||||||
return proxy;
|
return proxy;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue