mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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:
parent
1952d1c187
commit
330fd2309b
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue