Enable resize+alongside radiobutton if osprober reports multiple lines.
This commit is contained in:
parent
0801756cd1
commit
faa39e1746
@ -169,6 +169,22 @@ ChoicePage::init( PartitionCoreModule* core, const QStringList& osproberLines )
|
|||||||
alongsideButton->hide();
|
alongsideButton->hide();
|
||||||
}
|
}
|
||||||
else
|
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. "
|
m_messageLabel->setText( tr( "This computer currently has multiple operating systems on it. "
|
||||||
"What would you like to do?" ) );
|
"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, "
|
"<font color=\"red\">Warning: </font>This will delete all of your Windows 7 programs, "
|
||||||
"documents, photos, music, and any other files." )
|
"documents, photos, music, and any other files." )
|
||||||
.arg( "$RELEASE" ) );
|
.arg( "$RELEASE" ) );
|
||||||
alongsideButton->hide(); //FIXME: allow this when we can
|
}
|
||||||
|
else
|
||||||
|
alongsideButton->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
m_itemsLayout->addStretch();
|
m_itemsLayout->addStretch();
|
||||||
|
Loading…
Reference in New Issue
Block a user