From 02ac5127533dd69c21f58fa18606b0153839a203 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Wed, 26 Jun 2024 15:40:37 +0200 Subject: Fix reading idp list file --- src/global.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/global.cpp b/src/global.cpp index 91704f3..ce166c6 100644 --- a/src/global.cpp +++ b/src/global.cpp @@ -4,12 +4,13 @@ #include #include #include -#include #include #include #include #include #include +#include +#include bool Global::m_testMode = false; @@ -152,8 +153,9 @@ QString Global::getCombinedIdpWhitelist() QFile f(filePath); if (!f.open(QFile::ReadOnly)) continue; - while (f.canReadLine()) { - list << QString::fromUtf8(f.readLine()); + QTextStream in(&f); + while (!in.atEnd()) { + list.insert(in.readLine()); } f.close(); } -- cgit v1.2.3-55-g7522