Fixed QApplication exit order.

SignalManager need be destroyed before QApplication to avoid memory
leak.

Reviewer: Hugo Parente Lima <hugo.lima@openbossa.org>,
          Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
Renato Filho 2010-04-19 17:59:53 -03:00
commit 2c937c6442
4 changed files with 16 additions and 3 deletions

View file

@ -69,6 +69,9 @@ public:
// Used to discovery if SignalManager was connected with object "destroyed()" signal.
bool hasConnectionWith(const QObject *object);
// Disconnect all signals managed by Globalreceiver
void clear();
private:
struct SignalManagerPrivate;
SignalManagerPrivate* m_d;