mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-24 22:30:42 -04:00
stop GxsGroupFrameDialog from stealing the focus on summary update
This commit is contained in:
parent
463383e25c
commit
afba23882e
1 changed files with 14 additions and 4 deletions
|
@ -1105,6 +1105,11 @@ void GxsGroupFrameDialog::updateGroupSummary()
|
||||||
* Qt::QueuedConnection is important!
|
* 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);
|
insertGroupsData(*groupInfo);
|
||||||
updateSearchResults();
|
updateSearchResults();
|
||||||
|
|
||||||
|
@ -1132,6 +1137,11 @@ void GxsGroupFrameDialog::updateGroupSummary()
|
||||||
|
|
||||||
delete groupInfo;
|
delete groupInfo;
|
||||||
|
|
||||||
|
// Restore the focus.
|
||||||
|
|
||||||
|
if(w)
|
||||||
|
w->setFocus();
|
||||||
|
|
||||||
}, this );
|
}, this );
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue