diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 3b5f4c115..6421fe774 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -451,7 +451,9 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice ) []{}, this ); } + cDebug() << "next enabled:" << isNextEnabled(); setNextEnabled( !m_beforePartitionBarsView->selectionModel()->selectedRows().isEmpty() ); + cDebug() << "next enabled:" << isNextEnabled(); connect( m_beforePartitionBarsView->selectionModel(), SIGNAL( currentRowChanged( QModelIndex, QModelIndex ) ), this, SLOT( doReplaceSelectedPartition( QModelIndex, QModelIndex ) ), @@ -490,7 +492,7 @@ ChoicePage::doReplaceSelectedPartition( const QModelIndex& current, selectedDevice(), partition ); } ), - [] + [=] { setNextEnabled( !m_beforePartitionBarsView->selectionModel()->selectedRows().isEmpty() ); }, this );