r640: no message
[ctsim.git] / src / backgroundmgr.cpp
index 274165ed07e816552c74637f5a6e216f8e58cec7..275f20bd01c8f2ee4e4d9825bf1db6ddb474e374 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2001 Kevin Rosenberg
 **
-**  $Id: backgroundmgr.cpp,v 1.19 2001/03/13 04:44:25 kevin Exp $
+**  $Id: backgroundmgr.cpp,v 1.20 2001/03/18 18:08:26 kevin Exp $
 **
 **  This program is free software; you can redistribute it and/or modify
 **  it under the terms of the GNU General Public License (version 2) as
@@ -152,7 +152,6 @@ BackgroundManager::OnAddTask (wxCommandEvent& event)
   resizeWindow();
   if (m_iNumTasks == 1) {
     m_pCanvas->SetFocus();
-    pGauge->SetFocus();
     Show(true);  
   }
 }
@@ -188,9 +187,8 @@ BackgroundManager::OnRemoveTask (wxCommandEvent& event)
   pSupervisor->ackRemoveBackgroundManager();
   resizeWindow();
   if (m_iNumTasks <= 0) {
-    theApp->getMainFrame()->SetFocus();
+    m_pCanvas->SetFocus();
     Show(false);
-    theApp->getMainFrame()->SetFocus();
   }
 }