bugfix in MessageDialog, rs could crash when removing two or more messages at once

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3057 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2010-06-03 22:12:07 +00:00
parent 5264f46f9e
commit 08ea7232f7
2 changed files with 58 additions and 17 deletions

View file

@ -123,6 +123,17 @@ private slots:
#endif
private:
class LockUpdate
{
public:
LockUpdate (MessagesDialog *pDialog, bool bUpdate);
~LockUpdate ();
private:
MessagesDialog *m_pDialog;
bool m_bUpdate;
};
class QStandardItemModel *MessagesModel;
QSortFilterProxyModel *proxyModel;
@ -147,6 +158,7 @@ private:
#endif
bool m_bProcessSettings;
bool m_bInChange;
int m_nLockUpdate; // use with LockUpdate
enum { LIST_NOTHING,
LIST_BOX,