2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Updated code to be consistent with lib_ui.

This commit is contained in:
23rd
2021-01-13 04:10:25 +03:00
committed by John Preston
parent 97e8c0956f
commit 1ccfcc824c
9 changed files with 23 additions and 11 deletions

View File

@@ -594,7 +594,7 @@ bool TabbedSelector::preventAutoHide() const {
}
bool TabbedSelector::hasMenu() const {
return (_menu && !_menu->actions().empty());
return (_menu && !_menu->empty());
}
QImage TabbedSelector::grabForAnimation() {
@@ -881,7 +881,7 @@ void TabbedSelector::showMenuWithType(SendMenu::Type type) {
_menu = base::make_unique_q<Ui::PopupMenu>(this);
currentTab()->widget()->fillContextMenu(_menu, type);
if (!_menu->actions().empty()) {
if (!_menu->empty()) {
_menu->popup(QCursor::pos());
}
}