mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Added a mutex to avoid loading a collection twice at the same time.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@1334 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -51,6 +51,7 @@ ElementsCategory *FileElementsCollection::rootCategory() {
|
||||
Recharge l'arborescence des categories et elements.
|
||||
*/
|
||||
void FileElementsCollection::reload() {
|
||||
QMutexLocker reload_lock(&reload_mutex_);
|
||||
// oublie l'arborescence precedente
|
||||
deleteContent();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user