diff options
author | Rainer Keller <rainer.keller@nokia.com> | 2011-10-26 13:10:05 +0200 |
---|---|---|
committer | Rainer Keller <rainer.keller@nokia.com> | 2011-10-26 13:12:31 +0200 |
commit | b066d8ef6cacfaee746d90efd7ed2257f77c100c (patch) | |
tree | ef173f5c277b67f39b7863d427b47bba5701e783 | |
parent | 419e409a4f8a0666c655f509aae2b5e0d07d1746 (diff) |
Remove possible race condition
Reviewed-by: owolff
-rw-r--r-- | src/ui/docgalleryui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui/docgalleryui.cpp b/src/ui/docgalleryui.cpp index 8e45ef3..9cec1b7 100644 --- a/src/ui/docgalleryui.cpp +++ b/src/ui/docgalleryui.cpp @@ -81,8 +81,8 @@ void DocGalleryUi::addStandardItems() // Add some images QString modelPath = qApp->applicationDirPath() + "/models"; - mImageReaderWatcher.setFuture(QtConcurrent::run(this, &DocGalleryUi::readImages, modelPath)); connect(&mImageReaderWatcher, SIGNAL(finished()), this, SLOT(finishReadingImages())); + mImageReaderWatcher.setFuture(QtConcurrent::run(this, &DocGalleryUi::readImages, modelPath)); } void DocGalleryUi::openItem(QTreeWidgetItem *widgetItem, int) |