summaryrefslogtreecommitdiffstats
path: root/kdm
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2013-03-02 21:50:47 -0600
committerSlávek Banko <slavek.banko@axis.cz>2013-03-04 19:57:11 +0100
commit4421a984aa55ea5be0683fe17055eb86501ec9a4 (patch)
treecde9b7f1cdeebf8fd4617899f4b52c403750f2d5 /kdm
parent170d641554896663c3e4c0af5217cfbbad1b183c (diff)
downloadtdebase-4421a984aa55ea5be0683fe17055eb86501ec9a4.tar.gz
tdebase-4421a984aa55ea5be0683fe17055eb86501ec9a4.zip
Restore 'Custom' session option to login manager.
This resolves bug report 1413. (cherry picked from commit 2a17176ac076c140c9e4c7581f6d1c74e1f3b755)
Diffstat (limited to 'kdm')
-rw-r--r--kdm/kfrontend/kgreeter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/kdm/kfrontend/kgreeter.cpp b/kdm/kfrontend/kgreeter.cpp
index 649def4e6..d0a2afeed 100644
--- a/kdm/kfrontend/kgreeter.cpp
+++ b/kdm/kfrontend/kgreeter.cpp
@@ -618,6 +618,7 @@ void
KGreeter::putSession( const TQString &type, const TQString &name, bool hid, const char *exe )
{
int prio = exe ? (!strcmp( exe, "default" ) ? 0 :
+ !strcmp( exe, "custom" ) ? 1 :
!strcmp( exe, "failsafe" ) ? 3 : 2) : 2;
for (uint i = 0; i < sessionTypes.size(); i++)
if (sessionTypes[i].type == type) {
@@ -645,6 +646,7 @@ KGreeter::insertSessions()
}
}
putSession( "default", i18n("Default"), false, "default" );
+ putSession( "custom", i18n("Custom"), false, "custom" );
putSession( "failsafe", i18n("Failsafe"), false, "failsafe" );
qBubbleSort( sessionTypes );
for (uint i = 0; i < sessionTypes.size() && !sessionTypes[i].hid; i++) {