X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=src%2Fbackgroundmgr.cpp;h=340d7d4c73b13163f0af1b257e49f08680f1cd52;hp=55e611b766560c452c18ba86b1ba6024135f1870;hb=8a7697ce57b56cdc43698cd1241ad98d49f9b5ac;hpb=08c1ec110dc7936c2bbd1c619bd2cf3618c6b4cc diff --git a/src/backgroundmgr.cpp b/src/backgroundmgr.cpp index 55e611b..340d7d4 100644 --- a/src/backgroundmgr.cpp +++ b/src/backgroundmgr.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (C) 1983-2001 Kevin Rosenberg ** -** $Id: backgroundmgr.cpp,v 1.18 2001/03/11 17:55:29 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 @@ -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(); } }