diff --git a/gui/qt/mainwindow.cpp b/gui/qt/mainwindow.cpp index 236f7341..04fabf19 100644 --- a/gui/qt/mainwindow.cpp +++ b/gui/qt/mainwindow.cpp @@ -1150,7 +1150,7 @@ void MainWindow::showEvent(QShowEvent *e) { DockWidget *MainWindow::redistributeFindDock(const QPoint &pos) { QWidget *child = childAt(pos); if (QTabBar *tabBar = findSelfOrParent(child)) { - child = childAt({pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1}); + child = childAt(QPoint({pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1})); } return findSelfOrParent(child); }