From c2fac3a7177af41a27640eaa3e83087631ce1696 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 3 Apr 2020 15:14:14 +0200 Subject: [PATCH] [calamares] Minor clean-ups --- src/calamares/CalamaresApplication.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/calamares/CalamaresApplication.cpp b/src/calamares/CalamaresApplication.cpp index e9083c225..0f45fff50 100644 --- a/src/calamares/CalamaresApplication.cpp +++ b/src/calamares/CalamaresApplication.cpp @@ -338,16 +338,14 @@ CalamaresApplication::initViewSteps() m_mainwindow->show(); } - // ProgressTreeModel* m = new ProgressTreeModel( nullptr ); - // ProgressTreeView::instance()->setModel( m ); cDebug() << "STARTUP: Window now visible and ProgressTreeView populated"; - const auto steps = Calamares::ViewManager::instance()->viewSteps(); + const auto& steps = Calamares::ViewManager::instance()->viewSteps(); cDebug() << Logger::SubEntry << steps.count() << "view steps loaded."; // Tell the first view that it's been shown. if ( steps.count() > 0 ) { - steps[ 0 ]->onActivate(); + steps.first()->onActivate(); } }