Enable resize+alongside radiobutton if osprober reports multiple lines.

main
Teo Mrnjavac 10 years ago
parent 0801756cd1
commit faa39e1746

@ -169,6 +169,22 @@ ChoicePage::init( PartitionCoreModule* core, const QStringList& osproberLines )
alongsideButton->hide();
}
else
{
// m_osproberLines has at least 2 items.
bool atLeastOneCanBeResized = false;
foreach ( QString line, m_osproberLines )
{
QStringList osLine = line.split( ':' );
if ( canBeResized( osLine ) )
{
atLeastOneCanBeResized = true;
break;
}
}
if ( atLeastOneCanBeResized )
{
m_messageLabel->setText( tr( "This computer currently has multiple operating systems on it. "
"What would you like to do?" ) );
@ -183,7 +199,9 @@ ChoicePage::init( PartitionCoreModule* core, const QStringList& osproberLines )
"<font color=\"red\">Warning: </font>This will delete all of your Windows 7 programs, "
"documents, photos, music, and any other files." )
.arg( "$RELEASE" ) );
alongsideButton->hide(); //FIXME: allow this when we can
}
else
alongsideButton->hide();
}
m_itemsLayout->addStretch();

Loading…
Cancel
Save