aboutsummaryrefslogtreecommitdiff
path: root/src/ImageViewer.cpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-09-30 11:14:12 +0200
committerdec05eba <dec05eba@protonmail.com>2020-09-30 11:14:12 +0200
commit86d228bfc3e9c81c011c31bc81a908a21f975bfb (patch)
tree531964e8ccc8cd0ce74bb20da95553a235a711c5 /src/ImageViewer.cpp
parent7b1cbb86ac2cc0843312ddb81c7ca4d9f137c660 (diff)
Attempt to fix crash
Diffstat (limited to 'src/ImageViewer.cpp')
-rw-r--r--src/ImageViewer.cpp2
1 files changed, 1 insertions, 1 deletions
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<sf::Image>();
if(image->loadFromFile(path.data)) {
image_data->image = std::move(image);