diff --git a/retroshare-gui/src/gui/common/FriendSelectionWidget.cpp b/retroshare-gui/src/gui/common/FriendSelectionWidget.cpp index b69cca089..674b1319a 100644 --- a/retroshare-gui/src/gui/common/FriendSelectionWidget.cpp +++ b/retroshare-gui/src/gui/common/FriendSelectionWidget.cpp @@ -183,7 +183,7 @@ int FriendSelectionWidget::addColumn(const QString &title) void FriendSelectionWidget::start() { mStarted = true; - fillList(); + secured_fillList(); for (int i = 0; i < ui->friendList->columnCount(); ++i) { ui->friendList->resizeColumnToContents(i); @@ -225,6 +225,11 @@ void FriendSelectionWidget::fillList() if(RsAutoUpdatePage::eventsLocked()) return ; + secured_fillList() ; +} + +void FriendSelectionWidget::secured_fillList() +{ mInFillList = true; // get selected items diff --git a/retroshare-gui/src/gui/common/FriendSelectionWidget.h b/retroshare-gui/src/gui/common/FriendSelectionWidget.h index c5851826d..fc55ec9ad 100644 --- a/retroshare-gui/src/gui/common/FriendSelectionWidget.h +++ b/retroshare-gui/src/gui/common/FriendSelectionWidget.h @@ -106,6 +106,7 @@ signals: private slots: void fillList(); + void secured_fillList(); void peerStatusChanged(const QString& peerId, int status); void filterItems(const QString &text); void contextMenuRequested(const QPoint &pos);