common: Avoid crash on SignalProxy destruction
authorManuel Nickschas <sputnick@quassel-irc.org>
Tue, 25 Sep 2018 22:47:14 +0000 (00:47 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 1 Oct 2018 17:06:49 +0000 (19:06 +0200)
commit16a42dff7db80813c69527e7f44ec1ca6e6371cb
treed83871f991f41d2c847e82d258d6b7181425eb28
parent3b305252082a131cc2831afda10fb3030a4b4e44
common: Avoid crash on SignalProxy destruction

Since SignalProxy itself attaches a slot, it will try to detach
itself on destruction, leading to a crash. Avoid this by checking
for self-detachment.
src/common/signalproxy.cpp