mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-08-29 02:03:03 +08:00
frontend: Parent mixer context menu to window
Parent the QMenu to the window. Fixes a warning for "QWidgetWindow must be a top level window."
This commit is contained in:
@@ -393,7 +393,7 @@ void VolumeControl::showVolumeControlMenu(QPoint pos)
|
||||
return;
|
||||
}
|
||||
|
||||
QMenu *popup = new QMenu(this);
|
||||
QMenu *popup = new QMenu(window());
|
||||
|
||||
// Create menu QActions
|
||||
QAction *lockAction = new QAction(QTStr("LockVolume"), popup);
|
||||
|
||||
Reference in New Issue
Block a user