X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=src%2Fbackgroundmgr.cpp;h=340d7d4c73b13163f0af1b257e49f08680f1cd52;hb=af4c1e40b952335944785f88a5eb2d6218507257;hp=52ee7965cf1fc8f8af3fd3e6f501930f7f94446c;hpb=999a754d1519a49ca062ee87b22bf601c1ee9f21;p=ctsim.git diff --git a/src/backgroundmgr.cpp b/src/backgroundmgr.cpp index 52ee796..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.16 2001/03/11 06:34:37 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,9 +151,8 @@ BackgroundManager::OnAddTask (wxCommandEvent& event) resizeWindow(); if (m_iNumTasks == 1) { - theApp->getMainFrame()->SetFocus(); + m_pCanvas->SetFocus(); Show(true); - theApp->getMainFrame()->SetFocus(); } } @@ -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(); } }