From 59ec549617a77a5be347a73dd4c50be0e68b08b5 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 31 Dec 2015 16:21:50 +0100 Subject: [PATCH] Manage next button status. --- src/modules/partition/gui/ChoicePage.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 23673ea79..8e3e8974b 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -451,6 +451,7 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice ) []{}, this ); } + setNextEnabled( m_beforePartitionBarsView->selectionModel()->currentIndex().isValid() ); connect( m_beforePartitionBarsView->selectionModel(), SIGNAL( currentRowChanged( QModelIndex, QModelIndex ) ), this, SLOT( doReplaceSelectedPartition( QModelIndex, QModelIndex ) ), @@ -488,7 +489,11 @@ ChoicePage::doReplaceSelectedPartition( const QModelIndex& current, PartitionActions::doReplacePartition( m_core, selectedDevice(), partition ); - } ), []{}, this ); + } ), + [] + { + setNextEnabled( m_beforePartitionBarsView->selectionModel()->currentIndex().isValid() ); + }, this ); }