fixed loading/saving of remote directories

This commit is contained in:
mr-alice 2016-09-06 23:05:46 +02:00
parent 679c53b0b0
commit ad1ba7a77d
4 changed files with 41 additions and 9 deletions

View file

@ -199,6 +199,9 @@ int p3FileDatabase::tick()
}
mLastRemoteDirSweepTS = now;
#warning hack to make loaded directories show up in the GUI, because the GUI isn't ready at the time they are actually loaded up.
RsServer::notify()->notifyListChange(NOTIFY_LIST_DIRLIST_FRIENDS, 0);
}
return 0;
@ -412,6 +415,7 @@ void p3FileDatabase::cleanup()
mRemoteDirectories[friend_index] = new RemoteDirectoryStorage(*it,makeRemoteFileName(*it));
mUpdateFlags |= P3FILELISTS_UPDATE_FLAG_REMOTE_DIRS_CHANGED ;
mUpdateFlags |= P3FILELISTS_UPDATE_FLAG_REMOTE_MAP_CHANGED ;
}