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:
parent
17b6eed969
commit
b7da7c6885
@ -840,14 +840,16 @@ void CampoSetup::NormalSetup()
|
|||||||
|
|
||||||
bool CampoSetup::CampoRunning(const wxString& strAppName, const wxString& strMsg) const
|
bool CampoSetup::CampoRunning(const wxString& strAppName, const wxString& strMsg) const
|
||||||
{
|
{
|
||||||
bool ok = false;
|
|
||||||
wxSingleInstanceChecker sicProgram(strAppName);
|
wxSingleInstanceChecker sicProgram(strAppName);
|
||||||
if (sicProgram.IsAnotherRunning())
|
|
||||||
{
|
int i;
|
||||||
|
for (i = 3; i > 0 && sicProgram.IsAnotherRunning(); i--)
|
||||||
|
wxSleep(1);
|
||||||
|
|
||||||
|
if (i <= 0)
|
||||||
ErrorBox(strMsg);
|
ErrorBox(strMsg);
|
||||||
ok = true;
|
|
||||||
}
|
return i <= 0;
|
||||||
return ok;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user