X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2FfrmMain.cpp;h=4c3755597925d9f4a3083fa51405d1b3c4918453;hb=f204cf9df7db6a3f097e4d013b47d19577db09a7;hp=025022e99106d5097ee14d298511f75ad477fd0b;hpb=54daedb29e38f1a51ab9c0fc8b075375d10f73f9;p=xestiaab%2F.git diff --git a/source/frmMain.cpp b/source/frmMain.cpp index 025022e..4c37555 100644 --- a/source/frmMain.cpp +++ b/source/frmMain.cpp @@ -327,13 +327,34 @@ frmMainADT( parent ) } +void frmMain::QuitApp( wxCloseEvent& event ) +{ + + QuitApp(); + +} + void frmMain::QuitApp( wxCommandEvent& event ) +{ + + QuitApp(); + +} + +void frmMain::QuitApp() { //------------------------------------------------------------------- // frmMain::QuitApp: Quits the application by simply closing this // window which causes the exit as frmMain is the main window. // // wxCommandEvent Accepts a referenced event command. + //------------------------------------------------------------------- + + //------------------------------------------------------------------- + // frmMain::QuitApp: Quits the application by simply closing this + // window which causes the exit as frmMain is the main window. + // + // wxCommandEvent Accepts a referenced event command. //------------------------------------------------------------------- //Go through the windows and close each one (be it search @@ -398,17 +419,6 @@ void frmMain::QuitApp( wxCommandEvent& event ) std::exit(0); -} - -void frmMain::QuitApp() -{ - //------------------------------------------------------------------- - // frmMain::QuitApp: Quits the application by simply closing this - // window which causes the exit as frmMain is the main window. - // - // wxCommandEvent Accepts a referenced event command. - //------------------------------------------------------------------- - Close(); }