From d208e28717543e89df8dc3fc5f8f7d6c21fbb3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Sat, 24 Aug 2013 01:09:45 +0200 Subject: [PATCH] Small stylistic improvement --- view.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/view.cpp b/view.cpp index a0c61686c..6262e7b81 100644 --- a/view.cpp +++ b/view.cpp @@ -100,17 +100,17 @@ void View::setContainment(Plasma::Containment *cont) emit containmentChanged(); - if (cont) { - connect(cont, &Plasma::Containment::locationChanged, - this, &View::locationChanged); - connect(cont, &Plasma::Containment::formFactorChanged, - this, &View::formFactorChanged); - connect(cont, &Plasma::Containment::configureRequested, - this, &View::showConfigurationInterface); - } else { + if (!cont) { return; } + connect(cont, &Plasma::Containment::locationChanged, + this, &View::locationChanged); + connect(cont, &Plasma::Containment::formFactorChanged, + this, &View::formFactorChanged); + connect(cont, &Plasma::Containment::configureRequested, + this, &View::showConfigurationInterface); + QObject *graphicObject = m_containment.data()->property("graphicObject").value(); if (graphicObject) {