~blue-shell/blue-shell/plasma-nm

Viewing all changes in revision 1150.

  • Committer: Weng Xuetian
  • Date: 2014-12-17 00:18:58 UTC
  • Revision ID: git-v1:fc42a8d741af3886daddcdf0b05926e8f4fbc2b6
correctly maintain connecting state and connection icons

m_connecting is not always maintained correctly, thus it causes some
problem on plasmoid side. In the old code, if there are multiple
connections, activeConnectionDestroy might set connecting to wrong value
if there's another connection connecting.

This patch introduce ConnectionIcon::setStates() function, which always
scan through all active connections (number of active connections is
relatively small so it won't affect performance), and set connecting to
true if any connection is in "Activtating" state.

REVIEW: 121526

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: