//=================================================
void WxGimmickView::AddIgnoreFile(tree::Node* toRemove)
{
- mGimmick->RemoveFile("Local database",toRemove);
- GetTreeViewMap()["Local database"]->UpdateLevel(1);
+ mGimmick->RemoveFile(crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection())),toRemove);
+ GetTreeViewMap()[crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection()))]->UpdateLevel(1);
}
//=================================================
bool checkAttributes=false;
if(sel==2 || sel==3){repair=true;}
if(sel==1 || sel==3){checkAttributes=true;}
- std::string mess=mGimmick->Synchronize(repair, checkAttributes);
+ std::string mess=mGimmick->Synchronize(crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection())),repair, checkAttributes);
wxMessageBox(std2wx(mess),_T("Synchronization result"),wxOK,this);
- GetTreeViewMap()["Local database"]->UpdateLevel(1);
+ if(sel==2 || sel==3){
+ GetTreeViewMap()[crea::wx2std(mNotebook->GetPageText(mNotebook->GetSelection()))]->UpdateLevel(1);
+ }
}
}