From 86d228bfc3e9c81c011c31bc81a908a21f975bfb Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 30 Sep 2020 11:14:12 +0200 Subject: Attempt to fix crash --- src/ImageViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ImageViewer.cpp') diff --git a/src/ImageViewer.cpp b/src/ImageViewer.cpp index c929086..e005337 100644 --- a/src/ImageViewer.cpp +++ b/src/ImageViewer.cpp @@ -40,7 +40,7 @@ namespace QuickMedia { image_data->texture.setSmooth(true); assert(!loading_image); loading_image = true; - image_loader_thread = std::thread([this, image_data, path]() { + image_loader_thread = std::thread([this, image_data, path]() mutable { auto image = std::make_unique(); if(image->loadFromFile(path.data)) { image_data->image = std::move(image); -- cgit v1.2.3