stop GxsGroupFrameDialog from stealing the focus on summary update

This commit is contained in:
csoler 2023-06-27 14:00:04 +02:00
parent 463383e25c
commit afba23882e

View file

@ -1105,6 +1105,11 @@ void GxsGroupFrameDialog::updateGroupSummary()
* Qt::QueuedConnection is important!
*/
// Here we save the focus, and restore it afterwards: there's no need to grab the focus here and
// if we do, it may harm the navitation in forums, channels, boards, etc.
auto w = QApplication::focusWidget();
insertGroupsData(*groupInfo);
updateSearchResults();
@ -1132,6 +1137,11 @@ void GxsGroupFrameDialog::updateGroupSummary()
delete groupInfo;
// Restore the focus.
if(w)
w->setFocus();
}, this );
});
}