From e2f7ead351eedf245c2bb1840053288d18d5c0fc Mon Sep 17 00:00:00 2001
From: David Edmundson <kde@davidedmundson.co.uk>
Date: Tue, 5 Mar 2019 14:05:21 +0000
Subject: Revert "Fix autologin session loading"

It introduces Qt API > 5.8 which Plasma 5.12 depends on

This reverts commit 634a2dd1bef5dd8434db95a391300f68f30fd14e.
---
 src/sessionmodel.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/sessionmodel.cpp b/src/sessionmodel.cpp
index 08fe05d..9e52b12 100644
--- a/src/sessionmodel.cpp
+++ b/src/sessionmodel.cpp
@@ -64,7 +64,7 @@ void SessionModel::loadDir(const QString &path, SessionType type)
         QFile inputFile(dir.absoluteFilePath(session));
         if (!inputFile.open(QIODevice::ReadOnly))
             continue;
-        SessionPtr si { new Session { session.chopped(strlen(".desktop")), QString(), QString(), QString() } };
+        SessionPtr si { new Session { session, "", "", "" } };
         bool isHidden = false;
         QString current_section;
         QTextStream in(&inputFile);
-- 
cgit v1.1