mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-10 17:59:32 -04:00
Fixed deadlock in FriendSelectionWidget (patch from Cyril)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6438 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b21fae52d0
commit
e6c0217801
@ -23,6 +23,7 @@
|
||||
#include <QDialogButtonBox>
|
||||
#include "FriendSelectionWidget.h"
|
||||
#include "ui_FriendSelectionWidget.h"
|
||||
#include <retroshare-gui/RsAutoUpdatePage.h>
|
||||
#include "gui/notifyqt.h"
|
||||
#include "gui/common/RSTreeWidgetItem.h"
|
||||
#include "gui/common/StatusDefs.h"
|
||||
@ -219,6 +220,10 @@ void FriendSelectionWidget::fillList()
|
||||
if (!mStarted) {
|
||||
return;
|
||||
}
|
||||
if(!isVisible())
|
||||
return ;
|
||||
if(RsAutoUpdatePage::eventsLocked())
|
||||
return ;
|
||||
|
||||
mInFillList = true;
|
||||
|
||||
@ -481,6 +486,11 @@ void FriendSelectionWidget::fillList()
|
||||
|
||||
void FriendSelectionWidget::peerStatusChanged(const QString& peerId, int status)
|
||||
{
|
||||
if(!isVisible())
|
||||
return ;
|
||||
if(RsAutoUpdatePage::eventsLocked())
|
||||
return ;
|
||||
|
||||
QString gpgId;
|
||||
int gpgStatus = RS_STATUS_OFFLINE;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user