From 0c59b1d73fbf2f0a5eb25a2c73268862c688d8e0 Mon Sep 17 00:00:00 2001 From: Konrad Rosenbaum Date: Sun, 7 Aug 2016 21:55:09 +0200 Subject: [PATCH] fix preselection of default profile --- sessman/login.cpp | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/sessman/login.cpp b/sessman/login.cpp index be42348..6c22591 100644 --- a/sessman/login.cpp +++ b/sessman/login.cpp @@ -94,12 +94,17 @@ MLogin::MLogin(MSessionManager*sm) void MLogin::initProfiles() { QSettings set; + int defpronum=-1; + const QString defpro=set.value("defaultprofile").toString(); set.beginGroup("profiles"); QStringList prf=set.childGroups(); profiles->clear(); for(int i=0;iaddItem(set.value(prf[i]+"/name").toString(),prf[i]); } + if(defpronum>=0) + profiles->setCurrentIndex(defpronum); } void MLogin::loadProfile() -- 1.7.2.5