From 3576589ea7cdc3423e0b39a4b36c03627653c1a7 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Wed, 9 Nov 2022 16:38:17 +0100 Subject: [PATCH] Fix crash in slash completer --- src/timeline/TimelineViewManager.cpp | 4 ++-- 1 file 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; }