Merge pull request #12066 from Pokechu22/main-window-right-click-menu

Disable right-click menu on main window
This commit is contained in:
JMC47 2023-08-13 12:49:56 -04:00 committed by GitHub
commit 0495a6af4e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -1657,6 +1657,13 @@ bool MainWindow::eventFilter(QObject* object, QEvent* event)
return false;
}
QMenu* MainWindow::createPopupMenu()
{
// Disable the default popup menu as it exposes the debugger UI even when the debugger UI is
// disabled, which can lead to user confusion (see e.g. https://bugs.dolphin-emu.org/issues/13306)
return nullptr;
}
void MainWindow::dragEnterEvent(QDragEnterEvent* event)
{
if (event->mimeData()->hasUrls() && event->mimeData()->urls().size() == 1)