Fix crash in slash completer

detect_theme_change
Nicolas Werner 2 years ago
parent 485babba14
commit 3576589ea7
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 4
      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;
}

Loading…
Cancel
Save