cemu-ti: Fix build failure (#349005)
This commit is contained in:
commit
23f6066f42
@ -21,6 +21,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
sourceRoot = "${finalAttrs.src.name}/gui/qt/";
|
||||
|
||||
patches = [
|
||||
# This is resolved upstream, but I can't apply the patch because the
|
||||
# sourceRoot isn't set to the base of the Git repo.
|
||||
./resolve-ambiguous-constexpr.patch
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
|
@ -0,0 +1,13 @@
|
||||
diff --git a/mainwindow.cpp b/mainwindow.cpp
|
||||
index f03a743e..70c29a45 100644
|
||||
--- a/mainwindow.cpp
|
||||
+++ b/mainwindow.cpp
|
||||
@@ -970,7 +970,7 @@ void MainWindow::showEvent(QShowEvent *e) {
|
||||
DockWidget *MainWindow::redistributeFindDock(const QPoint &pos) {
|
||||
QWidget *child = childAt(pos);
|
||||
if (QTabBar *tabBar = findSelfOrParent<QTabBar *>(child)) {
|
||||
- child = childAt({pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1});
|
||||
+ child = childAt(QPoint({pos.x(), tabBar->mapTo(this, QPoint{}).y() - 1}));
|
||||
}
|
||||
return findSelfOrParent<DockWidget *>(child);
|
||||
}
|
Loading…
Reference in New Issue
Block a user