aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2017-10-25 07:59:06 +0200
committerMontel Laurent <[email protected]>2017-10-25 07:59:06 +0200
commitc73bde479f0647fd56dc6fcd3a18ae5c4c4f1e38 (patch)
tree763d39158f680e1ed146a82e0919af3df3633496
parent4cc49b4d77f0bd7d1aaf279d02fee6844479bfe4 (diff)
Avoid that we are able to change prefered status
-rw-r--r--src/contact-editor/editor/widgets/preferredlineeditwidget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/contact-editor/editor/widgets/preferredlineeditwidget.cpp b/src/contact-editor/editor/widgets/preferredlineeditwidget.cpp
index 978dfda..6dbced8 100644
--- a/src/contact-editor/editor/widgets/preferredlineeditwidget.cpp
+++ b/src/contact-editor/editor/widgets/preferredlineeditwidget.cpp
@@ -49,6 +49,9 @@ PreferredLineEditWidget::~PreferredLineEditWidget()
void PreferredLineEditWidget::slotPreferredStatusChanged()
{
+ if (isReadOnly()) {
+ return;
+ }
mPreferred = !mPreferred;
updatePreferredIcon();
Q_EMIT preferredChanged(this);