2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Improve Ui::Menu interface.

This commit is contained in:
John Preston
2019-04-19 11:35:35 +04:00
parent 9acdc4eac1
commit 607655941d
11 changed files with 60 additions and 55 deletions

View File

@@ -1616,8 +1616,12 @@ void DialogsInner::contextMenuEvent(QContextMenuEvent *e) {
selectByMouse(globalPosition);
}
});
_menu->popup(e->globalPos());
e->accept();
if (_menu->actions().empty()) {
_menu = nullptr;
} else {
_menu->popup(e->globalPos());
e->accept();
}
}
void DialogsInner::onParentGeometryChanged() {