mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-03 19:42:45 +01:00
Merge pull request #12066 from Pokechu22/main-window-right-click-menu
Disable right-click menu on main window
This commit is contained in:
commit
0495a6af4e
@ -1657,6 +1657,13 @@ bool MainWindow::eventFilter(QObject* object, QEvent* event)
|
|||||||
return false;
|
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)
|
void MainWindow::dragEnterEvent(QDragEnterEvent* event)
|
||||||
{
|
{
|
||||||
if (event->mimeData()->hasUrls() && event->mimeData()->urls().size() == 1)
|
if (event->mimeData()->hasUrls() && event->mimeData()->urls().size() == 1)
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
#include "Core/Boot/Boot.h"
|
#include "Core/Boot/Boot.h"
|
||||||
|
|
||||||
|
class QMenu;
|
||||||
class QStackedWidget;
|
class QStackedWidget;
|
||||||
class QString;
|
class QString;
|
||||||
|
|
||||||
@ -80,6 +81,7 @@ public:
|
|||||||
WindowSystemInfo GetWindowSystemInfo() const;
|
WindowSystemInfo GetWindowSystemInfo() const;
|
||||||
|
|
||||||
bool eventFilter(QObject* object, QEvent* event) override;
|
bool eventFilter(QObject* object, QEvent* event) override;
|
||||||
|
QMenu* createPopupMenu() override;
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void ReadOnlyModeChanged(bool read_only);
|
void ReadOnlyModeChanged(bool read_only);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user