r7061: initial property settings
[ctsim.git] / src / backgroundmgr.cpp
index 58bd9029a428f1acd6684d6b419b09039a26b341..340d7d4c73b13163f0af1b257e49f08680f1cd52 100644 (file)
@@ -9,7 +9,7 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2001 Kevin Rosenberg
 **
-**  $Id: backgroundmgr.cpp,v 1.17 2001/03/11 12:37:34 kevin Exp $
+**  $Id$
 **
 **  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
@@ -151,8 +151,8 @@ BackgroundManager::OnAddTask (wxCommandEvent& event)
 
   resizeWindow();
   if (m_iNumTasks == 1) {
+    m_pCanvas->SetFocus();
     Show(true);  
-       theApp->getLog()->SetFocus();
   }
 }
 
@@ -187,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();
   }
 }