Removed display of empty menu from userpic in profile top bar.
This commit is contained in:
@@ -1247,8 +1247,9 @@ void TopBar::setupUserpicButton(
|
||||
false);
|
||||
}
|
||||
}
|
||||
|
||||
(*menu)->popup(QCursor::pos());
|
||||
if (!(*menu)->empty()) {
|
||||
(*menu)->popup(QCursor::pos());
|
||||
}
|
||||
} else if (button == Qt::LeftButton) {
|
||||
if (_topicIconView && _topic && _topic->iconId()) {
|
||||
const auto document = _peer->owner().document(
|
||||
|
||||
Reference in New Issue
Block a user