From 45900cbd68fdd56515a90f867b6665d4b8252d57 Mon Sep 17 00:00:00 2001 From: Ingo Weyrich Date: Mon, 21 Oct 2019 23:02:48 +0200 Subject: [PATCH] partial save code review --- rtgui/profilepanel.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtgui/profilepanel.cc b/rtgui/profilepanel.cc index a6885d7d3..fc418e5b7 100644 --- a/rtgui/profilepanel.cc +++ b/rtgui/profilepanel.cc @@ -346,13 +346,13 @@ void ProfilePanel::save_clicked (GdkEventButton* event) } else if (isLastSavedSelected()) { toSave = lastsaved; } else { - const ProfileStoreEntry* entry = profiles->getSelectedEntry(); + const auto entry = profiles->getSelectedEntry(); toSave = entry ? ProfileStore::getInstance()->getProfile(entry) : nullptr; } if (toSave) { int retCode; - if (event->state & Gdk::CONTROL_MASK) { + if (isPartial) { // Build partial profile PartialProfile ppTemp(true); partialProfileDlg->applyPaste(ppTemp.pparams, ppTemp.pedited, toSave->pparams, toSave->pedited);