From e2bfbbf9b146454b4cb6013f2e95ebfaa23a2211 Mon Sep 17 00:00:00 2001 From: Hombre Date: Sun, 18 Aug 2019 00:26:15 +0200 Subject: [PATCH] Bugfix: Edit button was not switched off when opening a new image Reported in issue #2239 : https://github.com/Beep6581/RawTherapee/issues/2239#issuecomment-521955110 --- rtgui/editorpanel.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtgui/editorpanel.cc b/rtgui/editorpanel.cc index 1f8e83c3e..053586bca 100644 --- a/rtgui/editorpanel.cc +++ b/rtgui/editorpanel.cc @@ -1090,8 +1090,8 @@ void EditorPanel::close () if (iareapanel) { iareapanel->imageArea->setPreviewHandler (nullptr); iareapanel->imageArea->setImProcCoordinator (nullptr); - iareapanel->imageArea->unsubscribe(); } + tpc->editModeSwitchedOff(); rtengine::StagedImageProcessor::destroy (ipc); ipc = nullptr;