}\r
\r
// \83\8b\81[\83g\82É\83f\83B\83\8c\83N\83g\83\8a\82Æ\83t\83@\83C\83\8b\8d\87\82í\82¹\82Ä2\8cÂ\88È\8fã\82 \82é\82Æ\82«\81A\83f\83B\83\8c\83N\83g\83\8a\82ð\8dì\90¬\81B\r
- switch (frm->tree_ctrl->GetChildrenCount(frm->tree_ctrl->GetLastChild(frm->tree_ctrl->GetRootItem()), false))\r
+ wxTreeItemId tiArcRoot = frm->tree_ctrl->GetLastChild(frm->tree_ctrl->GetRootItem());\r
+ switch (frm->tree_ctrl->GetChildrenCount(tiArcRoot, false))\r
{\r
case 0:\r
{\r
// \83f\83B\83\8c\83N\83g\83\8a\82ª1\8cÂ\82È\82Ì\82Å\81A\83\8b\81[\83g\82É\83t\83@\83C\83\8b\82ª\82È\82¢\82©\82Ç\82¤\82©\82ð\94»\92è\81B\r
for (size_t i = 0; i < frm->fileinfo.GetCount(); i++)\r
{\r
- if (frm->fileinfo[i].fnFileName.GetPath().IsEmpty())\r
+ // \83f\83B\83\8c\83N\83g\83\8a\83\81\83\93\83o\82ª\8ai\94[\82³\82ê\82Ä\82¢\82é\8fê\8d\87\82É\82Í\81A\82»\82Ì\96¼\91O\82ª\83c\83\8a\81[\83r\83\85\81[\82Ì\83A\83C\83e\83\80\96¼\82É\88ê\92v\82µ\82½\8fê\8d\87\82Í\83J\83E\83\93\83g\82µ\82È\82¢\81B\r
+ if (frm->fileinfo[i].fnFileName.GetPath().IsEmpty() && frm->fileinfo[i].fnFileName.GetFullName() != frm->tree_ctrl->GetItemText(frm->tree_ctrl->GetLastChild(tiArcRoot)))\r
{\r
return true;\r
}\r