ref: 237566f18f86de303fbf0640f2262e4beb967ef5
parent: d5c86a4701199fa8d1c3f0d8b15d1bd766cbcf6b
author: Iliyas Jorio <[email protected]>
date: Wed Feb 2 20:06:57 EST 2022
Fix read prefs from old version
--- a/src/prefs.cpp
+++ b/src/prefs.cpp
@@ -60,7 +60,7 @@
for (Preference& pref: prefList)
{
stream.seekg(0, std::ios::beg);
- while (!stream.eof())
+ while (stream.good() && !stream.eof())
{
int keyLength;
char key[256];