fixed bug preventing share manager to modify more than one directory at once

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5845 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-11-19 21:19:44 +00:00
parent a8d1d05405
commit 14a8bb8283

View File

@ -122,6 +122,9 @@ void ShareManager::shareddirListCostumPopupMenu( QPoint /*point*/ )
/** Loads the settings for this page */
void ShareManager::load()
{
if(isLoading)
return ;
isLoading = true;
std::cerr << "ShareManager:: In load !!!!!" << std::endl ;
@ -188,6 +191,8 @@ void ShareManager::updateFlags()
if(isLoading)
return ;
isLoading = true ; // stops GUI update
std::cerr << "Updating flags" << std::endl;
std::list<SharedDirInfo>::iterator it;
@ -205,9 +210,12 @@ void ShareManager::updateFlags()
(*it).shareflags = current_flags ;
rsFiles->updateShareFlags(*it) ; // modifies the flags
std::cout << "Updating share flags for directory " << (*it).filename << " to " << current_flags << std::endl ;
std::cerr << "Push into the list: flags " << current_flags << " for directory: " << (*it).filename << std::endl;
}
}
isLoading = false ; // re-enable GUI load
load() ; // update the GUI.
}
void ShareManager::updateGroups()