From 6dd639fd3cc67c2e0c041176d31cfc712f837157 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 31 Dec 2015 16:29:45 +0100 Subject: [PATCH] Try with rows. --- src/modules/partition/gui/ChoicePage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index cad8fb9b0..3b5f4c115 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -451,7 +451,7 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice ) []{}, this ); } - setNextEnabled( !m_beforePartitionBarsView->selectionModel()->selection().isEmpty() ); + setNextEnabled( !m_beforePartitionBarsView->selectionModel()->selectedRows().isEmpty() ); connect( m_beforePartitionBarsView->selectionModel(), SIGNAL( currentRowChanged( QModelIndex, QModelIndex ) ), this, SLOT( doReplaceSelectedPartition( QModelIndex, QModelIndex ) ), @@ -492,7 +492,7 @@ ChoicePage::doReplaceSelectedPartition( const QModelIndex& current, } ), [] { - setNextEnabled( !m_beforePartitionBarsView->selectionModel()->selection().isEmpty() ); + setNextEnabled( !m_beforePartitionBarsView->selectionModel()->selectedRows().isEmpty() ); }, this ); }