this->gFile = XRCCTRL(* this, "gFile", wxGauge);\r
this->gArchive = XRCCTRL(* this, "gArchive", wxGauge);\r
this->fCancel = false;\r
+ this->nOverwriteMode = wxID_OK;\r
g_procDlg = this;\r
\r
::wxXmlResource::Get()->Unload(L_DIR_S_XRC wxT("dlg_process.xrc"));\r
if (piInfo->fnDestination.FileExists() || ::wxDirExists(piInfo->fnDestination.GetFullPath()))\r
{\r
// 上書き確認を行う。\r
- static int nMode = wxID_OK;\r
bool bPerm = false;\r
- if (nMode == wxID_OK)\r
+ if (this->nOverwriteMode == wxID_OK)\r
{\r
OverwriteDialog odDlg;\r
odDlg.fnExist = & piInfo->fnDestination;\r
odDlg.tmWrite = & piInfo->fiInfo.tmModified;\r
odDlg.nWriteSize = piInfo->fiInfo.nUnpackedSize;\r
\r
- nMode = odDlg.ShowModal();\r
+ this->nOverwriteMode = odDlg.ShowModal();\r
bPerm = odDlg.cbApplyAll->IsChecked();\r
}\r
- switch (nMode)\r
+ else\r
+ {\r
+ bPerm = true;\r
+ }\r
+ switch (this->nOverwriteMode)\r
{\r
case wxID_CANCEL:\r
this->fCancel = true;\r
}\r
if (! bPerm)\r
{\r
- nMode = wxID_OK;\r
+ this->nOverwriteMode = wxID_OK;\r
}\r
}\r
break;\r