Fix crash in slash completer
This commit is contained in:
parent
485babba14
commit
3576589ea7
@ -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 New Issue
Block a user