Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 右键菜单栏黑框 #265

Open
wants to merge 1 commit into
base: release/eagle
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/album/albumview/leftlistview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,9 @@ void LeftListView::showMenu(const QPoint &pos)
m_pCustomizeListView->setCurrentIndex(m_pCustomizeListView->indexAt(pos));
emit m_pCustomizeListView->pressed(m_pCustomizeListView->indexAt(pos));
}
#ifndef __loongarch64
m_pMenu->setVisible(true);
#endif
foreach (QAction *action, m_MenuActionMap.values()) {
action->setVisible(true);
action->setEnabled(true);
Expand Down Expand Up @@ -399,6 +401,9 @@ void LeftListView::showMenu(const QPoint &pos)
//菜单里面可能没有内容,强行显示出来会造成BUG
if (needShowMenu) {
m_pMenu->popup(QCursor::pos());
#ifdef __loongarch64
m_pMenu->setVisible(true);
#endif
} else {
m_pMenu->setVisible(false);
}
Expand Down
Loading