2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 16:45:12 +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

@@ -1841,7 +1841,7 @@ void InnerWidget::contextMenuEvent(QContextMenuEvent *e) {
selectByMouse(globalPosition);
}
});
if (_menu->actions().empty()) {
if (_menu->empty()) {
_menu = nullptr;
} else {
_menu->popup(e->globalPos());