Merge pull request #1180 from PhenomRetroShare/Add_ClearGxsGroupFrameWhenNoSelection

Clear GxsGroupFrame When No Selection
This commit is contained in:
csoler 2018-02-20 20:18:31 +01:00 committed by GitHub
commit 35b54bbcb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -656,6 +656,14 @@ void GxsGroupFrameDialog::changedGroup(const QString &groupId)
return;
}
if (groupId.isEmpty()) {
if (mMessageWidget) {
mMessageWidget->setGroupId(RsGxsGroupId());
ui->messageTabWidget->setCurrentWidget(mMessageWidget);
}
return;
}
mGroupId = RsGxsGroupId(groupId.toStdString());
if (mGroupId.isNull()) {
return;