1
0
Fork 0
mirror of synced 2024-06-17 18:14:44 +12:00

fix error when no image is available

This commit is contained in:
ChemicalXandco 2021-01-17 22:58:48 +00:00
parent a5ee69f0b1
commit c27e6d0524

View file

@ -47,6 +47,7 @@ class UninstalledGameWidget(QWidget):
pixmap = pixmap.scaled(120, 160)
self.image = QLabel()
self.image.setPixmap(pixmap)
self.layout.addWidget(self.image)
self.child_layout = QVBoxLayout()
@ -62,7 +63,6 @@ class UninstalledGameWidget(QWidget):
self.child_layout.addWidget(self.version_label)
self.child_layout.addWidget(self.install_button)
self.child_layout.addStretch(1)
self.layout.addWidget(self.image)
self.layout.addLayout(self.child_layout)
self.layout.addStretch(1)