Enable/disable Next button based on whether we have a root mount point

This commit is contained in:
Aurélien Gâteau 2014-07-07 16:26:56 +02:00
parent 52028d95f9
commit 36b3de7107
3 changed files with 29 additions and 2 deletions

View file

@ -27,6 +27,8 @@ PartitionViewStep::PartitionViewStep( QObject* parent )
, m_core( new PartitionCoreModule( this ) )
, m_widget( new PartitionPage( m_core ) )
{
connect( m_core, SIGNAL( hasRootMountPointChanged( bool ) ),
SIGNAL( nextStatusChanged( bool ) ) );
}
@ -60,7 +62,7 @@ PartitionViewStep::back()
bool
PartitionViewStep::isNextEnabled() const
{
return false;
return m_core->hasRootMountPoint();
}