mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-20 03:48:16 -04:00
Changed PreMods() and postMods() functions into signals in notifyqt so that these functions do not cause a data race when called from a callback in libretroshare.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1038 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
516b1684f9
commit
543e27a1da
5 changed files with 64 additions and 107 deletions
|
@ -359,27 +359,21 @@ void SharedFilesDialog::openfolder()
|
|||
|
||||
void SharedFilesDialog::preModDirectories(bool update_local)
|
||||
{
|
||||
std::cerr << "SharedFilesDialog::preModDirectories called with update_local = " << update_local << std::endl ;
|
||||
if (update_local)
|
||||
{
|
||||
localModel->preMods();
|
||||
}
|
||||
else
|
||||
{
|
||||
model->preMods();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void SharedFilesDialog::ModDirectories(bool update_local)
|
||||
void SharedFilesDialog::postModDirectories(bool update_local)
|
||||
{
|
||||
std::cerr << "SharedFilesDialog::postModDirectories called with update_local = " << update_local << std::endl ;
|
||||
if (update_local)
|
||||
{
|
||||
localModel->postMods();
|
||||
}
|
||||
else
|
||||
{
|
||||
model->postMods();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue