Commit 8a664461 authored by Volker Krause's avatar Volker Krause
Browse files

Write format enum to kconfig in the same way we read it

That is, as an int. The old code just by chance compiles with Qt 5 (but
not anymore with Qt 6), but would not result in the same values being
read back again.
parent 121a7afd
Pipeline #260694 passed with stage
in 1 minute and 57 seconds
......@@ -72,7 +72,7 @@ void DiffSettings::saveSettings(KConfig* config)
KConfigGroup group(config, "Diff Options");
group.writeEntry("DiffProgram", m_diffProgram);
group.writeEntry("LinesOfContext", m_linesOfContext);
group.writeEntry("Format", QString(m_format));
group.writeEntry("Format", (int)m_format);
group.writeEntry("LargeFiles", m_largeFiles);
group.writeEntry("IgnoreWhiteSpace", m_ignoreWhiteSpace);
group.writeEntry("IgnoreAllWhiteSpace", m_ignoreAllWhiteSpace);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment