Merge pull request #1524 from gportay/partition-message-user-if-no-option-available
[partition] Message user if no option available
This commit is contained in:
commit
9486ee6fbf
@ -1430,6 +1430,23 @@ ChoicePage::setupActions()
|
|||||||
m_alongsideButton->hide();
|
m_alongsideButton->hide();
|
||||||
m_replaceButton->hide();
|
m_replaceButton->hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( m_somethingElseButton->isHidden()
|
||||||
|
&& m_alongsideButton->isHidden()
|
||||||
|
&& m_replaceButton->isHidden()
|
||||||
|
&& m_somethingElseButton->isHidden() )
|
||||||
|
{
|
||||||
|
if (atLeastOneIsMounted)
|
||||||
|
m_messageLabel->setText( tr( "This storage device has one of its partitions <strong>mounted</strong>." ) );
|
||||||
|
else
|
||||||
|
m_messageLabel->setText( tr( "This storage device is a part of an <strong>inactive RAID</strong> device." ) );
|
||||||
|
|
||||||
|
m_messageLabel->show();
|
||||||
|
cWarning() << "No buttons available"
|
||||||
|
<< "replaced?" << atLeastOneCanBeReplaced
|
||||||
|
<< "resized?" << atLeastOneCanBeResized
|
||||||
|
<< "erased? (not-mounted and not-raid)" << !atLeastOneIsMounted << "and" << !isInactiveRAID;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user