- gui = new ProxGuiQT(argc, argv);
- main_loop_thread = new WorkerThread(script_cmds_file, usb_present);
- QObject::connect(main_loop_thread, SIGNAL(finished()), main_loop_thread, SLOT(deleteLater()));
- QObject::connect(main_loop_thread, SIGNAL(finished()), gui, SLOT(_Exit()));
+ main_loop_thread = new WorkerThread(script_cmds_file, script_cmd, usb_present);
+ gui = new ProxGuiQT(argc, argv, main_loop_thread);