From 1c2d83d586b8e16f280ef7ca5dd11c4ff45476c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Magnus=20Hellstr=C3=B6mer?= Date: Sat, 15 Feb 2025 23:18:14 +0100 Subject: [PATCH] Fix compile error --- sources/machine_info.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/machine_info.cpp b/sources/machine_info.cpp index 56e2bfa28..b255820c4 100644 --- a/sources/machine_info.cpp +++ b/sources/machine_info.cpp @@ -188,7 +188,7 @@ void MachineInfo::send_info_to_debug() QDirIterator it1(QETApp::commonElementsDir().toLatin1(),nameFilters, QDir::Files, QDirIterator::Subdirectories); while (it1.hasNext()) { - if(it1.next() > 0 ) + if(it1.next() != "") { commomElementsDir ++; } @@ -200,7 +200,7 @@ void MachineInfo::send_info_to_debug() QDirIterator it2(QETApp::customElementsDir().toLatin1(), nameFilters, QDir::Files, QDirIterator::Subdirectories); while (it2.hasNext()) { - if(it2.next() > 0 ) + if(it2.next() != "") { customElementsDir ++; } @@ -211,7 +211,7 @@ void MachineInfo::send_info_to_debug() QDirIterator it3(QETApp::companyElementsDir().toLatin1(), nameFilters, QDir::Files, QDirIterator::Subdirectories); while (it3.hasNext()) { - if(it3.next() > 0 ) + if(it3.next() != "") { companyElementsDir ++; }