From 4d1e29d7479178ac5baab9b8a0e8b2dac7170f79 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Fri, 5 Jul 2024 21:03:24 +0200 Subject: [PATCH] fix: Build issue due to uncaptured this pointer --- main/gui/source/window/macos_window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/gui/source/window/macos_window.cpp b/main/gui/source/window/macos_window.cpp index ab5d98d9e..50d1b4c4d 100644 --- a/main/gui/source/window/macos_window.cpp +++ b/main/gui/source/window/macos_window.cpp @@ -66,7 +66,7 @@ namespace hex { }); EventProviderDirtied::subscribe([this](prv::Provider *) { - TaskManager::doLater([] { + TaskManager::doLater([this] { macosMarkContentEdited(m_window); }); }); @@ -78,7 +78,7 @@ namespace hex { return true; }, .store = [this](const std::fs::path &, Tar &) { - TaskManager::doLater([] { + TaskManager::doLater([this] { macosMarkContentEdited(m_window, false); });