From 06d0205bab253ec5d01e8483ab639a092fe117c5 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Fri, 5 Dec 2008 22:26:38 +0100 Subject: 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... --- src/gui/updatewindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/updatewindow.cpp') 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) { -- cgit v1.2.3-70-g09d2