diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-05 22:26:38 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2008-12-05 22:30:19 +0100 |
commit | 06d0205bab253ec5d01e8483ab639a092fe117c5 (patch) | |
tree | 480a2f510f189d8d3a64a99b1eb94c8b5d1ca764 /src/gui | |
parent | 6ac9c3bce62a8fc79e23477417188108f0ad9fa6 (diff) | |
download | mana-client-06d0205bab253ec5d01e8483ab639a092fe117c5.tar.gz mana-client-06d0205bab253ec5d01e8483ab639a092fe117c5.tar.bz2 mana-client-06d0205bab253ec5d01e8483ab639a092fe117c5.tar.xz mana-client-06d0205bab253ec5d01e8483ab639a092fe117c5.zip |
Fixed MutexLocker to not work on a copy
The Mutex class wasn't meant to be copied around. Silly last minute
refactorings leading to untested code...
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/updatewindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp index 6083725e..c0344b72 100644 --- a/src/gui/updatewindow.cpp +++ b/src/gui/updatewindow.cpp @@ -164,7 +164,7 @@ void UpdaterWindow::setProgress(float p) void UpdaterWindow::setLabel(const std::string &str) { // Do delayed label text update, since Guichan isn't thread-safe - MutexLocker lock(mLabelMutex); + MutexLocker lock(&mLabelMutex); mNewLabelCaption = str; } @@ -410,7 +410,7 @@ void UpdaterWindow::logic() // Synchronize label caption when necessary { - MutexLocker lock(mLabelMutex); + MutexLocker lock(&mLabelMutex); if (mLabel->getCaption() != mNewLabelCaption) { |