mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-13 03:22:34 -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
|
@ -37,12 +37,11 @@ class MessengerWindow : public RWindow
|
|||
public:
|
||||
QPixmap picture;
|
||||
|
||||
static void showYourself ();
|
||||
static MessengerWindow* getInstance();
|
||||
static void releaseInstance();
|
||||
|
||||
public slots:
|
||||
/** Called when this dialog is to be displayed */
|
||||
void show();
|
||||
void updateMessengerDisplay() ;
|
||||
void updatePeersAvatar(const QString& peer_id);
|
||||
void updateAvatar();
|
||||
|
@ -105,7 +104,7 @@ signals:
|
|||
void friendsUpdated() ;
|
||||
|
||||
private:
|
||||
static MessengerWindow *mv;
|
||||
static MessengerWindow *_instance;
|
||||
|
||||
void processSettings(bool bLoad);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue