summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2022-11-09 16:38:17 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2022-11-09 16:38:17 +0100
commit3576589ea7cdc3423e0b39a4b36c03627653c1a7 (patch)
tree29f9fa787dbf88ec474e7d0eebe360512aaa8e09 /src
parentImplement a completer for commands (diff)
downloadnheko-3576589ea7cdc3423e0b39a4b36c03627653c1a7.tar.xz
Fix crash in slash completer
Diffstat (limited to 'src')
-rw-r--r--src/timeline/TimelineViewManager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp

index ed86414d..490bf726 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp
@@ -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; }