Clear GxsGroupFrame When No Selection

This commit is contained in:
Phenom 2018-02-18 23:12:59 +01:00
parent 2bc0629cc7
commit 71e1a46fa6

View File

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