diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 2e965ad93..15ed1adab 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -1411,6 +1411,23 @@ ChoicePage::setupActions() m_alongsideButton->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 mounted." ) ); + else + m_messageLabel->setText( tr( "This storage device is a part of an inactive RAID device." ) ); + + m_messageLabel->show(); + cWarning() << "No buttons available" + << "replaced?" << atLeastOneCanBeReplaced + << "resized?" << atLeastOneCanBeResized + << "erased? (not-mounted and not-raid)" << !atLeastOneIsMounted << "and" << !isInactiveRAID; + } }