summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-14 13:26:35 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-14 13:26:35 -0600
commita4dccc7bc996a62a2887bcf904ddabab9c684b00 (patch)
tree0f48aae4cbf8086aa1385af8c449cfb87de7b791
parent217893db033788ed0770927141e27990762fefb4 (diff)
downloadhorizon-a4dccc7bc996a62a2887bcf904ddabab9c684b00.tar.gz
horizon-a4dccc7bc996a62a2887bcf904ddabab9c684b00.tar.bz2
horizon-a4dccc7bc996a62a2887bcf904ddabab9c684b00.tar.xz
horizon-a4dccc7bc996a62a2887bcf904ddabab9c684b00.zip
Qt UI: Lessen scope of 'indent' in PkgItemModel::loadPackages
-rw-r--r--ui/qt5/pkgmodel.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/qt5/pkgmodel.cc b/ui/qt5/pkgmodel.cc
index 4cd9170..c6736bc 100644
--- a/ui/qt5/pkgmodel.cc
+++ b/ui/qt5/pkgmodel.cc
@@ -251,12 +251,12 @@ void PkgItemModel::loadPackages() {
QByteArray raw_pkgs = myList.readAll();
QList<QByteArray> pkgs = raw_pkgs.split('\n');
- int indent, lastIndent = 0;
+ int lastIndent = 0;
PkgItem *temp = new PkgItem(_root, "Placeholder", "Placeholder", "Used for loading only");
PkgItem *last = temp;
for(auto &pkg : pkgs) {
- indent = 0;
+ int indent = 0;
if(pkg.isEmpty()) continue;