ConfigDialog: adjust dialog height when errors are shown on macOS

This commit is contained in:
albertosottile 2019-06-21 23:34:06 +02:00
parent b37a514050
commit 763406b660

View File

@ -1419,6 +1419,8 @@ class ConfigDialog(QtWidgets.QDialog):
self.storeAndRunButton.setFocus()
if isMacOS():
initialHeight = self.connectionSettingsGroup.minimumSizeHint().height()+self.mediaplayerSettingsGroup.minimumSizeHint().height()+self.bottomButtonFrame.minimumSizeHint().height()+50
if self.error:
initialHeight += 40
self.setFixedWidth(self.sizeHint().width())
self.setFixedHeight(initialHeight)
else: