mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 08:05:18 -04:00
Create the instance of MessengerWindow only when needed and delete it on close.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3301 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
8f5fe8bae2
commit
d53a6c9d29
7 changed files with 87 additions and 56 deletions
|
@ -22,9 +22,8 @@ class NotifyQt: public QObject, public NotifyBase
|
|||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
NotifyQt()
|
||||
: cDialog(NULL)
|
||||
{ return; }
|
||||
static NotifyQt *Create ();
|
||||
static NotifyQt *getInstance ();
|
||||
|
||||
virtual ~NotifyQt() { return; }
|
||||
|
||||
|
@ -72,6 +71,9 @@ class NotifyQt: public QObject, public NotifyBase
|
|||
void UpdateGUI(); /* called by timer */
|
||||
|
||||
private:
|
||||
NotifyQt() : cDialog(NULL) { return; }
|
||||
|
||||
static NotifyQt *_instance;
|
||||
|
||||
// void displayNeighbours();
|
||||
// void displayFriends();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue