From 22459c8fb8d16dc9695a071ba3b37067e757e2c8 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 31 Dec 2015 16:35:01 +0100 Subject: [PATCH] Debug output. --- src/modules/partition/gui/ChoicePage.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 );