From 4d616e2782b3d80b1d18fbaae098594309b19bd7 Mon Sep 17 00:00:00 2001 From: Oleg Koncevoy Date: Tue, 5 Dec 2017 17:34:18 +0200 Subject: [PATCH] Added updateHistogram method to ColorManagementToolbar class. This method get's called on histogram profile icon toggle and updated histogram. modified: rtgui/editorpanel.cc --- rtgui/editorpanel.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rtgui/editorpanel.cc b/rtgui/editorpanel.cc index 855458b93..d5cd42dcb 100644 --- a/rtgui/editorpanel.cc +++ b/rtgui/editorpanel.cc @@ -464,6 +464,13 @@ public: updateParameters (); } + void updateHistogram() + { + intentBox.setSelected(intentBox.getSelected()); + updateParameters(); + } + + void defaultMonitorProfileChanged (const Glib::ustring &profile_name, bool auto_monitor_profile) { ConnectionBlocker profileBlocker (profileConn); @@ -2031,6 +2038,7 @@ void EditorPanel::syncFileBrowser() // synchronize filebrowser with image in E void EditorPanel::histogramProfile_toggled() { options.rtSettings.HistogramWorking = toggleHistogramProfile->get_active(); + colorMgmtToolBar->updateHistogram(); } bool EditorPanel::idle_sendToGimp ( ProgressConnector *pc, Glib::ustring fname)