Skip to content

Commit

Permalink
macOS: Fix video equalizer menu again for Qt 5.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zaps166 committed Nov 25, 2019
1 parent dc1ae75 commit a044e4a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/gui/MenuBar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,12 @@ MenuBar::Playback::VideoFilters::VideoFilters(QMenu *parent) :
connect(videoAdjustmentMenu, &VideoFilters::aboutToShow, [] {
if (QWidget *parent = QMPlay2GUI.videoAdjustment->parentWidget())
{
if (qstrcmp(parent->metaObject()->className(), "QMenu") == 0)
if (qstrcmp(parent->metaObject()->className(), "QMacNativeWidget") == 0)
{
// Needed for Qt 5.6.3
QMPlay2GUI.videoAdjustment->update();
}
else if (qstrcmp(parent->metaObject()->className(), "QMenu") == 0)
{
QTimer::singleShot(0, [parent] {
QMPlay2GUI.videoAdjustment->setGeometry(QRect(QPoint(), parent->sizeHint()));
Expand Down

0 comments on commit a044e4a

Please sign in to comment.