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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user