Migliorata gestione istanze multiple
git-svn-id: svn://10.65.10.50/branches/R_10_00@22927 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
195b6a3fb2
commit
526ec34d8a
@ -38,8 +38,11 @@ void TMainApp::OnTimer(wxTimerEvent& evt)
|
||||
|
||||
bool TMainApp::OnInit()
|
||||
{
|
||||
const wxFileName strWrk = argv[0];
|
||||
const wxString strApp = strWrk.GetName().Lower();
|
||||
wxFileName strWrk = argv[0];
|
||||
//const wxString strApp = strWrk.GetName().Lower();
|
||||
strWrk.MakeAbsolute();
|
||||
wxString strApp = strWrk.GetFullPath().Lower();
|
||||
strApp.Replace("\\", "_"); strApp.Replace("/", "_"); strApp.Replace(":", "_");
|
||||
m_sic = new wxSingleInstanceChecker(strApp);
|
||||
xvt_vobj_set_attr(NULL_WIN, ATTR_APPL_ALREADY_RUNNING, m_sic->IsAnotherRunning());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user