X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=kernel%2Fsrc%2FbbtkQt.cxx;h=7e9b296b4caac1e51e2ab2c1e4257b0c389f4533;hb=6ac9074f717f22c4ffdc6a70d0704c1b1f8fe842;hp=f7a193d6a18dd3ddb7f5fd587148ebe00bd08c5b;hpb=8dd53a72bc1dd1ca2c6e2763c0aeb51c77ee352e;p=bbtk.git diff --git a/kernel/src/bbtkQt.cxx b/kernel/src/bbtkQt.cxx index f7a193d..7e9b296 100644 --- a/kernel/src/bbtkQt.cxx +++ b/kernel/src/bbtkQt.cxx @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbtkQt.cxx,v $ Language: C++ - Date: $Date: 2009/05/18 10:45:41 $ - Version: $Revision: 1.2 $ + Date: $Date: 2009/05/28 14:22:10 $ + Version: $Revision: 1.3 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -88,27 +88,28 @@ namespace bbtk void Qt::CreateQtAppIfNeeded() { - if (QApplication::instance()==0) + + if (QApplication::instance()==0) { + if (mgQtApp != 0) { bbtkGlobalError("Qt::CreateQtAppIfNeeded() : INTERNAL ERROR ! (QCoreApplication::instance()==0) && (mgQtApp != 0)"); } - bbtkDebugMessage("qt",1," --> Creating bbtk QApplication"< Creating bbtk QApplication"<(argv); mgQtApp = new QApplication(argc,&aargv); - // std::cout << ">>>> mgQtApp.exec()"<exec(); - // std::cout << "<<<< mgQtApp.exec()"< QApplication::instance = "<>>> mgQtApp.exec()"<exec(); - // wxInitialize(); + std::cout << "<<<< mgQtApp.exec()"<