From 7806ccbe729ceee69cb0e608cf07bf9a0df10e2c Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 1 Apr 2019 07:39:19 -0400 Subject: [PATCH] [partition] Drop superfluous debug logging - While here, update copyright header --- src/modules/partition/gui/PartitionPage.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/partition/gui/PartitionPage.cpp b/src/modules/partition/gui/PartitionPage.cpp index 965209b41..a9aa0fc81 100644 --- a/src/modules/partition/gui/PartitionPage.cpp +++ b/src/modules/partition/gui/PartitionPage.cpp @@ -2,7 +2,7 @@ * * Copyright 2014, Aurélien Gâteau * Copyright 2015-2016, Teo Mrnjavac - * Copyright 2018, Adriaan de Groot + * Copyright 2018-2019, Adriaan de Groot * Copyright 2018, Andrius Štikonas * Copyright 2018, Caio Jordão Carvalho * Copyright 2019, Collabora Ltd @@ -512,7 +512,8 @@ findBootloader( const QAbstractItemModel* model, const QString& path ) for ( int i = 0; i < model->rowCount(); ++i) { const auto index = model->index( i, 0, QModelIndex() ); - cDebug() << "FindBootLoader" << i << index.isValid() << model->itemData( index ); + if ( !index.isValid() ) + continue; QVariant var = model->data( index, BootLoaderModel::BootLoaderPathRole ); if ( var.isValid() && var.toString() == path ) return i;