From d2ea83a0b2157be9db016c70c779448bead4bacd Mon Sep 17 00:00:00 2001 From: Gabriel Craciunescu Date: Sat, 28 Oct 2017 02:18:36 +0200 Subject: [PATCH] NetInstallPage.cpp: fix displaying for Name and Description - fixes 1d7ad9e0450d0d069b1496de0c412baab7f7fa96 which sets both header's labels to 0 so 'Name' was always overridden by Description and Description never displayed --- src/modules/netinstall/NetInstallPage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/netinstall/NetInstallPage.cpp b/src/modules/netinstall/NetInstallPage.cpp index 7bfda320c..030537732 100644 --- a/src/modules/netinstall/NetInstallPage.cpp +++ b/src/modules/netinstall/NetInstallPage.cpp @@ -3,6 +3,7 @@ * Copyright 2016, Lisa Vitolo * Copyright 2017, Kyle Robbertze * Copyright 2017, Adriaan de Groot + * Copyright 2017, Gabriel Craciunescu * * Calamares is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -77,7 +78,7 @@ NetInstallPage::readGroups( const QByteArray& yamlData ) m_groups = new PackageModel( groups ); CALAMARES_RETRANSLATE( m_groups->setHeaderData( 0, Qt::Horizontal, tr( "Name" ) ); - m_groups->setHeaderData( 0, Qt::Horizontal, tr( "Description" ) ); ) + m_groups->setHeaderData( 1, Qt::Horizontal, tr( "Description" ) ); ) return true; }