From a35fdc9c4df20c017653edfaa77465dfe85d38d6 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 11 Jan 2013 14:27:25 -0600 Subject: Add profile support to displayconfig and krandrtray Add automatic display hotplug profile switch support to krandrtray --- kcontrol/iccconfig/iccconfig.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kcontrol/iccconfig/iccconfig.cpp') diff --git a/kcontrol/iccconfig/iccconfig.cpp b/kcontrol/iccconfig/iccconfig.cpp index 28296dd5e..a4c3999d2 100644 --- a/kcontrol/iccconfig/iccconfig.cpp +++ b/kcontrol/iccconfig/iccconfig.cpp @@ -178,6 +178,7 @@ void KICCConfig::renameProfile () { } } } + if (!_ok) return; // Rename the profile if (config) config->deleteGroup(base->iccProfileList->currentText()); @@ -212,6 +213,7 @@ void KICCConfig::addProfile () { } } } + if (!_ok) return; // Expand the profile memory numberOfProfiles++; -- cgit v1.2.1