mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-05 09:05:14 +00:00
Improve Ui::Menu interface.
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user