Also uncheck if hidden.

This commit is contained in:
Teo Mrnjavac 2016-01-08 14:50:00 +01:00
parent f71ce22f3b
commit 53c27208f1

View file

@ -698,6 +698,8 @@ ChoicePage::setupActions()
m_replaceButton->hide(); m_replaceButton->hide();
m_alongsideButton->hide(); m_alongsideButton->hide();
m_replaceButton->buttonWidget()->setChecked( false );
m_alongsideButton->buttonWidget()->setChecked( false );
} }
else if ( osproberEntriesForCurrentDevice.count() == 1 ) else if ( osproberEntriesForCurrentDevice.count() == 1 )
{ {
@ -757,7 +759,10 @@ ChoicePage::setupActions()
if ( osproberEntriesForCurrentDevice.first().canBeResized ) if ( osproberEntriesForCurrentDevice.first().canBeResized )
m_alongsideButton->show(); m_alongsideButton->show();
else else
{
m_alongsideButton->hide(); m_alongsideButton->hide();
m_alongsideButton->buttonWidget()->setChecked( false );
}
} }
else else
{ {
@ -800,7 +805,10 @@ ChoicePage::setupActions()
if ( atLeastOneCanBeResized ) if ( atLeastOneCanBeResized )
m_alongsideButton->show(); m_alongsideButton->show();
else else
{
m_alongsideButton->hide(); m_alongsideButton->hide();
m_alongsideButton->buttonWidget()->setChecked( false );
}
} }
bool isEfi = QDir( "/sys/firmware/efi/efivars" ).exists(); bool isEfi = QDir( "/sys/firmware/efi/efivars" ).exists();