From d4d8835779757ee8d5ec4d2f5a5403f2a0dd7b24 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sat, 24 Oct 2009 17:39:23 +0200 Subject: [PATCH] initialize lmgr in bat --- bacula/src/qt-console/main.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/bacula/src/qt-console/main.cpp b/bacula/src/qt-console/main.cpp index b34b49755c..6e5064b75d 100644 --- a/bacula/src/qt-console/main.cpp +++ b/bacula/src/qt-console/main.cpp @@ -58,7 +58,6 @@ static char *configfile = NULL; int main(int argc, char *argv[]) { int ch; - int rc; bool no_signals = true; bool test_config = false; @@ -85,6 +84,7 @@ int main(int argc, char *argv[]) init_stack_dump(); my_name_is(argc, argv, "bat"); + lmgr_init_thread(); init_msg(NULL, NULL); working_directory = "/tmp"; @@ -159,9 +159,7 @@ int main(int argc, char *argv[]) mainWin = new MainWin; mainWin->show(); - rc = app->exec(); -// sm_dump(false); - return rc; + return app->exec(); } void terminate_console(int /*sig*/) -- 2.39.5