summaryrefslogtreecommitdiffstats
path: root/tdm
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2015-10-11 09:55:07 +0200
committerSlávek Banko <slavek.banko@axis.cz>2015-10-11 09:55:42 +0200
commit5613190366a790ea7436839bdec7cb4a01183736 (patch)
treed6d8721c0acfaab9ff90914770e7677dacf910d2 /tdm
parenta3f5b3a4bda1aa378ff85e4466281d7609f14892 (diff)
downloadtdebase-5613190366a790ea7436839bdec7cb4a01183736.tar.gz
tdebase-5613190366a790ea7436839bdec7cb4a01183736.zip
Fix setting curWMSession when used previous type of session in TDM
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit 226e5fc71660fd5a5dec8b94415ce00221efd755)
Diffstat (limited to 'tdm')
-rw-r--r--tdm/kfrontend/kgreeter.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/tdm/kfrontend/kgreeter.cpp b/tdm/kfrontend/kgreeter.cpp
index aa89fd78e..b4ce5b29b 100644
--- a/tdm/kfrontend/kgreeter.cpp
+++ b/tdm/kfrontend/kgreeter.cpp
@@ -735,15 +735,18 @@ KGreeter::slotLoadPrevWM()
}
}
- for (uint i = 0; i < sessionTypes.count() && !sessionTypes[i].hid; i++)
+ for (uint i = 0; i < sessionTypes.count() && !sessionTypes[i].hid; i++) {
if (sessionTypes[i].type == sess) {
free( sess );
setPrevWM( i );
+ curWMSession = sessionTypes[i].type.utf8();
return;
}
- if (curSel == -1)
+ }
+ if (curSel == -1) {
MsgBox( sorrybox, i18n("Your saved session type '%1' is not valid any more.\n"
"Please select a new one, otherwise 'default' will be used.").arg( sess ) );
+ }
free( sess );
prevValid = false;
}