nixpkgs/pkgs/applications/display-managers/sddm/sddm-ignore-config-mtime.patch
Thomas Tuegel 6a80bb95f7 sddm: ignore config file modification time
Properly fixes #10211, wherein the config file was not being loaded
because it was considered too old. However, the modification time was
being compared against an uninitialized value; the semantics of the
uninitialized timestamp probably changed between Qt 5.4 and 5.5.
2015-10-06 22:54:33 -05:00

17 lines
587 B
Diff

diff --git a/src/common/ConfigReader.cpp b/src/common/ConfigReader.cpp
index 6618455..5356e76 100644
--- a/src/common/ConfigReader.cpp
+++ b/src/common/ConfigReader.cpp
@@ -136,11 +136,6 @@ namespace SDDM {
QString currentSection = QStringLiteral(IMPLICIT_SECTION);
QFile in(m_path);
- QDateTime modificationTime = QFileInfo(in).lastModified();
- if (modificationTime <= m_fileModificationTime) {
- return;
- }
- m_fileModificationTime = modificationTime;
in.open(QIODevice::ReadOnly);
while (!in.atEnd()) {