mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
a8d1d05405
commit
14a8bb8283
@ -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;
|
||||
@ -203,11 +208,14 @@ void ShareManager::updateFlags()
|
||||
if( (*it).shareflags != current_flags )
|
||||
{
|
||||
(*it).shareflags = current_flags ;
|
||||
rsFiles->updateShareFlags(*it) ; // modifies the 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()
|
||||
|
Loading…
Reference in New Issue
Block a user