Review Request: Check for connection being valid rather than looking at the connection status before calling monitor presence.

Commit Hook null at kde.org
Thu May 5 22:42:24 CEST 2011


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/101288/#review3140
-----------------------------------------------------------


This review has been submitted with commit be28fa3db185265a3db7ebffe90fc056f76a5e82 by David Edmundson.

- Commit


On May 4, 2011, 4:09 p.m., David Edmundson wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/101288/
> -----------------------------------------------------------
> 
> (Updated May 4, 2011, 4:09 p.m.)
> 
> 
> Review request for Telepathy.
> 
> 
> Summary
> -------
> 
> Check for connection being valid rather than looking at the connection status before calling monitor presence.
> 
> There are times when connectionStatus is Connected, but account->connection() returns 0. This causes crashes in the old code.
> 
> Converted code to call monitorPresence when connectionChanges() not connectionStatusChanges.
> 
> Also updated monitorPresence to take a connectionPtr rather than accountPtr as it makes the code easier with this new change.
> 
> 
> Diffs
> -----
> 
>   main-widget.h c103a66e4c92b93a933fe02c82b5462c09740e85 
>   main-widget.cpp b929572ff47e7fc4a34e385525d0aab458909ffb 
> 
> Diff: http://git.reviewboard.kde.org/r/101288/diff
> 
> 
> Testing
> -------
> 
> Reconnected a few accounts. Didn't crash.
> 
> 
> Thanks,
> 
> David
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kde-telepathy/attachments/20110505/1e9fb5c0/attachment-0001.htm 


More information about the KDE-Telepathy mailing list