From: Eric Bollengier Date: Sat, 24 Oct 2009 15:39:23 +0000 (+0200) Subject: initialize lmgr in bat X-Git-Tag: Release-5.0.0~281^2~48 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e3794969764cf14af44a7ffbcea04fc7c578961a;p=bacula%2Fbacula initialize lmgr in bat --- 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*/)