summaryrefslogtreecommitdiff
path: root/games-util/antimicro/files/antimicro-2.23-gcc11-ptr-compare.patch
blob: 2ed157c1e84b6885ade344f09be4d3897e7eb942 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
https://bugs.gentoo.org/791145
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -364,7 +364,7 @@ void MainWindow::makeJoystickTabs()
         ui->tabWidget->addTab(tabwidget, joytabName);
     }
 
-    if (joysticks > 0)
+    if (joysticks->size() > 0)
     {
         ui->tabWidget->setCurrentIndex(0);
         ui->stackedWidget->setCurrentIndex(1);