diff --git a/代码/telsale_aux_kit/source/main.cpp b/代码/telsale_aux_kit/source/main.cpp index d8839a5..af43ace 100644 --- a/代码/telsale_aux_kit/source/main.cpp +++ b/代码/telsale_aux_kit/source/main.cpp @@ -11,7 +11,7 @@ using namespace std; int main( int argc, char * argv[] ) { - QApplication * pApp = NULL; + QApplication * pApp = new QApplication(argc, argv);; QLoginWidget * pLogin = NULL; QMainFrame * pMainFrame = NULL; @@ -35,9 +35,9 @@ int main( int argc, char * argv[] ) try { + //pApp = pLogin = new QLoginWidget(); - pApp = new QApplication( argc, argv ); - + pLogin->exec(); if ( pLogin->isLogin() == true ) @@ -61,15 +61,15 @@ int main( int argc, char * argv[] ) delete pLogin; } - if ( pApp != NULL ) - { - delete pApp; - } - if ( pMainFrame != NULL ) { delete pMainFrame; } + if (pApp != NULL) + { + delete pApp; + } + return iReturnCode; }