From 5126458040cd7b08a947c7d27ffe89f980412ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Fri, 1 Aug 2014 10:29:41 +0200 Subject: [PATCH] Disable "Next" button if isNextEnabled() of first step returns false --- src/libcalamaresui/ViewManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcalamaresui/ViewManager.cpp b/src/libcalamaresui/ViewManager.cpp index b9e3ea79d..c595f0ef7 100644 --- a/src/libcalamaresui/ViewManager.cpp +++ b/src/libcalamaresui/ViewManager.cpp @@ -92,6 +92,9 @@ ViewManager::addViewStep( ViewStep* step ) m_prepareSteps.append( step ); insertViewStep( m_steps.size() - 1, step ); + // If this is the first inserted view step, update status of "Next" button + if ( m_prepareSteps.count() == 1 ) + m_next->setEnabled( step->isNextEnabled() ); }