]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOWxGimmickView.cpp
Added functionality of timestamp and maintenance databases when using multiple sources
[creaImageIO.git] / src2 / creaImageIOWxGimmickView.cpp
index 646782cac0372c4152f63ee5c5ff95235789ad24..4381a6e1a38e422714d0d6fa19c93fd093555108 100644 (file)
@@ -607,8 +607,8 @@ namespace creaImageIO
   //=================================================
   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);
   }
 
    //=================================================
@@ -635,9 +635,11 @@ namespace creaImageIO
                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);
+               }
                
     }
   }