Properly clean up after disconnecting
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 9 Mar 2010 18:37:44 +0000 (19:37 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Tue, 9 Mar 2010 18:41:10 +0000 (19:41 +0100)
commitf7de6cee3148bc799ee20cd9def47d9e5703d66c
treed3cd30c71f78f1b3b31ffd25475f281c82df20b6
parentd30e35dfabe35d7477c8a1c55b229447c5062f28
Properly clean up after disconnecting

Mainly this fixes a crash on reconnect, because ToolBarActionProvider didn't clean
up its state after disconnecting. Now the relevant classes have slots for connecting
and disconnecting that can be reimplemented if necessary.

A better solution is probably polling Client's state rather than using slots, but for
now this should be ok.
src/qtui/qtui.cpp
src/uisupport/graphicalui.cpp
src/uisupport/graphicalui.h
src/uisupport/networkmodelcontroller.h
src/uisupport/toolbaractionprovider.cpp
src/uisupport/toolbaractionprovider.h