Changeset 8897 in ntrip for trunk/BNC/src/bncmain.cpp
- Timestamp:
- Mar 13, 2020, 9:52:09 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/bncmain.cpp
r8896 r8897 367 367 368 368 bool GUIenabled = interactive || displaySet; 369 t_app app(argc, argv, GUIenabled); 370 371 app.setApplicationName("BNC"); 372 app.setOrganizationName("BKG"); 373 app.setOrganizationDomain("www.bkg.bund.de"); 374 375 BNC_CORE->setGUIenabled(GUIenabled); 369 QScopedPointer<QCoreApplication> app(createApplication(argc, argv, GUIenabled)); 370 371 if (qobject_cast<QApplication *>(app.data())) { // start GUI version 372 app->setApplicationName("BNC"); 373 app->setOrganizationName("BKG"); 374 app->setOrganizationDomain("www.bkg.bund.de"); 375 376 BNC_CORE->setGUIenabled(GUIenabled); 377 } 378 else { // start non-gui Version 379 380 } 381 376 382 BNC_CORE->setConfFileName( confFileName ); 377 383 … … 418 424 } 419 425 420 app.setWindowIcon(QPixmap(":ntrip-logo.png"));421 422 426 bncWin = new bncWindow(); 423 427 BNC_CORE->setMainWindow(bncWin); … … 475 479 BNC_CORE->initCombination(); 476 480 477 BNC_CORE->connect(caster, SIGNAL(getThreadsFinished()), &app, SLOT(quit()));478 481 //BNC_CORE->connect(caster, SIGNAL(getThreadsFinished()), &app, SLOT(quit())); 482 BNC_CORE->connect(caster, SIGNAL(getThreadsFinished()), app->instance(), SLOT(quit())); 479 483 BNC_CORE->slotMessage("========== Start BNC v" BNCVERSION " (" BNC_OS ") ==========", true); 480 484 … … 506 510 // Start the application 507 511 // --------------------- 508 app .exec();512 app->exec(); 509 513 if (interactive) { 510 514 delete bncWin; … … 523 527 delete rawFile; 524 528 } 529 525 530 return 0; 526 531 }
Note:
See TracChangeset
for help on using the changeset viewer.