Fix UI bug when toggling moreOptions

This commit is contained in:
Et0h 2015-08-30 21:46:13 +01:00
parent c00270aef9
commit 2983dbc69a

View File

@ -69,8 +69,8 @@ class ConfigDialog(QtGui.QDialog):
self.saveMoreState(False)
self.stackedLayout.setCurrentIndex(0)
newHeight = self.connectionSettingsGroup.minimumSizeHint().height()+self.mediaplayerSettingsGroup.minimumSizeHint().height()+self.bottomButtonFrame.minimumSizeHint().height()+3
if self.errorLabel.isVisible():
newHeight +=self.errorLabel.height()+3
if self.error:
newHeight += self.errorLabel.height()+3
self.stackedFrame.setFixedHeight(newHeight)
self.adjustSize()
self.setFixedSize(self.sizeHint())