summaryrefslogtreecommitdiffstats
path: root/tdm/kfrontend
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2013-03-02 21:50:47 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2013-03-02 21:50:47 -0600
commit2a17176ac076c140c9e4c7581f6d1c74e1f3b755 (patch)
tree980facf18ad10c567460b9e09e7cbd2c90935a28 /tdm/kfrontend
parent7bd9856f9552e2a705b48365395394fe26a16147 (diff)
downloadtdebase-2a17176ac076c140c9e4c7581f6d1c74e1f3b755.tar.gz
tdebase-2a17176ac076c140c9e4c7581f6d1c74e1f3b755.zip
Restore 'Custom' session option to login manager.
This resolves bug report 1413.
Diffstat (limited to 'tdm/kfrontend')
-rw-r--r--tdm/kfrontend/kgreeter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tdm/kfrontend/kgreeter.cpp b/tdm/kfrontend/kgreeter.cpp
index 173b7def..b8e2cd32 100644
--- a/tdm/kfrontend/kgreeter.cpp
+++ b/tdm/kfrontend/kgreeter.cpp
@@ -619,6 +619,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) {
@@ -646,6 +647,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++) {