From 330fd2309bbb91dac0d8e0d4be439ab3cb6197c2 Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Sun, 28 Jan 2024 09:24:48 -0500 Subject: [PATCH] downloader: call Command::init() Otherwise we may end up crashing in Command::execute() due to null undoStack. Signed-off-by: Richard Fuchs --- subsurface-downloader-main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subsurface-downloader-main.cpp b/subsurface-downloader-main.cpp index 6966f1125..6fe159e06 100644 --- a/subsurface-downloader-main.cpp +++ b/subsurface-downloader-main.cpp @@ -13,6 +13,7 @@ #include "core/file.h" #include "core/trip.h" #include "core/libdivecomputer.h" +#include "commands/command.h" #include #include @@ -25,6 +26,7 @@ extern void cliDownloader(const char *vendor, const char *product, const char *d int main(int argc, char **argv) { + Command::init(); qInstallMessageHandler(messageHandler); // we always run this in verbose mode as there is no UI verbose = 1;