From d7b49ee2f5756fc67fc984fab447751d33731706 Mon Sep 17 00:00:00 2001 From: Pekka Vuorela Date: Tue, 7 Jul 2015 15:42:37 +0300 Subject: [PATCH] Remove useless null check --- connd/qconnectionagent.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/connd/qconnectionagent.cpp b/connd/qconnectionagent.cpp index 0213121..3772e81 100644 --- a/connd/qconnectionagent.cpp +++ b/connd/qconnectionagent.cpp @@ -461,9 +461,7 @@ void QConnectionAgent::setup() if (connmanAvailable) { qDebug() << Q_FUNC_INFO << netman->state(); - if (ua) - delete ua; - + delete ua; ua = new UserAgent(this); connect(ua,SIGNAL(userInputRequested(QString,QVariantMap)),