Skip to content

Commit

Permalink
Merge pull request #8660 from elpaso/bugfix-20789-QgsReadWriteLocker-…
Browse files Browse the repository at this point in the history
…moab-2

Fix QgsReadWriteLocker changeMode
  • Loading branch information
elpaso committed Dec 13, 2018
2 parents 44bbf1f + b0d1506 commit a395aff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/qgsreadwritelocker.cpp
Expand Up @@ -34,6 +34,8 @@ void QgsReadWriteLocker::changeMode( QgsReadWriteLocker::Mode mode )

unlock();

mMode = mode;

if ( mMode == Read )
mLock.lockForRead();
else if ( mMode == Write )
Expand Down

0 comments on commit a395aff

Please sign in to comment.