From 423d2dfc5cb67720e260fce93be0b6c03b353b4c Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Thu, 14 Jan 2016 16:03:39 +0100 Subject: [PATCH] Make sure we update the splitter widget after a rescan. --- 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 9aa6abf0e..2074eb1a5 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -466,7 +466,12 @@ ChoicePage::applyActionChoice( ChoicePage::Choice choice ) QMutexLocker locker( &m_coreMutex ); m_core->revertDevice( selectedDevice() ); } ), - []{}, + [this] + { + // We need to reupdate after reverting because the splitter widget is + // not a true view. + updateActionChoicePreview( currentChoice() ); + }, this ); } setNextEnabled( !m_beforePartitionBarsView->selectionModel()->selectedRows().isEmpty() );