Merge branch 'master' of https://git.maemo.org/projects/qtmeetings
authorMikko Siren <mikko.siren@ixonos.com>
Thu, 28 May 2009 10:21:51 +0000 (13:21 +0300)
committerMikko Siren <mikko.siren@ixonos.com>
Thu, 28 May 2009 10:21:51 +0000 (13:21 +0300)
src/IO/Communication/CommunicationManager.cpp

index 8174ef7..c941c7d 100644 (file)
@@ -93,12 +93,10 @@ void CommunicationManager::fetchMeetingDetails( Meeting& aMeeting )
 
 void CommunicationManager::cancelFetchMeetingDetails()
 {
-       const RequestData *rd = NULL;
-       for( rd = findRequest( GetCalendarItem );rd != NULL; )
-       {
-               int id =  rd->requestId;
+       const RequestData *rd = findRequest( GetCalendarItem );
+       if( rd != NULL ) {
+               int id = rd->requestId;
                iCancelledRequests.append( id );
-               rd = findRequest( GetCalendarItem );
        }
 }