Patch level :4.0 futura

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :


git-svn-id: svn://10.65.10.50/trunk@15697 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2007-10-09 13:22:42 +00:00
parent 17b6eed969
commit b7da7c6885

View File

@ -840,14 +840,16 @@ void CampoSetup::NormalSetup()
bool CampoSetup::CampoRunning(const wxString& strAppName, const wxString& strMsg) const
{
bool ok = false;
wxSingleInstanceChecker sicProgram(strAppName);
if (sicProgram.IsAnotherRunning())
{
int i;
for (i = 3; i > 0 && sicProgram.IsAnotherRunning(); i--)
wxSleep(1);
if (i <= 0)
ErrorBox(strMsg);
ok = true;
}
return ok;
return i <= 0;
}