From kde-commits Wed Aug 31 22:00:18 2011 From: Gregory Schlomoff Date: Wed, 31 Aug 2011 22:00:18 +0000 To: kde-commits Subject: [kdepimlibs/4.7] kimap: KIMAP::Session: removing a work around that Message-Id: <20110831220018.2E414A60A6 () git ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=131482804328378 Git commit f437aa4e1f2e5d29339c010eaf6dc5019610ee18 by Gregory Schlomoff. Committed on 19/08/2011 at 00:37. Pushed by schlomoff into branch '4.7'. KIMAP::Session: removing a work around that was needed before the fix from commit aef63334. Now all unit tests pass. M +1 -3 kimap/session.cpp http://commits.kde.org/kdepimlibs/f437aa4e1f2e5d29339c010eaf6dc5019610ee18 diff --git a/kimap/session.cpp b/kimap/session.cpp index 10abac0..5341d8f 100644 --- a/kimap/session.cpp +++ b/kimap/session.cpp @@ -360,9 +360,7 @@ void SessionPrivate::socketDisconnected() if ( state != Session::Disconnected ) { setState(Session::Disconnected); emit q->connectionLost(); - } - - if (!isSocketConnected) { + } else { emit q->connectionFailed(); }