downloader: call Command::init()

Otherwise we may end up crashing in Command::execute() due to null
undoStack.

Signed-off-by: Richard Fuchs <dfx@dfx.at>
This commit is contained in:
Richard Fuchs 2024-01-28 09:24:48 -05:00 committed by Dirk Hohndel
parent 1952d1c187
commit 330fd2309b

View file

@ -13,6 +13,7 @@
#include "core/file.h"
#include "core/trip.h"
#include "core/libdivecomputer.h"
#include "commands/command.h"
#include <QApplication>
#include <QLoggingCategory>
@ -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;