LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File ksmserver-defaulttohalt.diff of Package kdebase3 (Project openSUSE:Factory)

Index: ksmserver/shutdowndlg.cpp
===================================================================
--- ksmserver/shutdowndlg.cpp.orig
+++ ksmserver/shutdowndlg.cpp
@@ -222,7 +222,7 @@ KSMShutdownDlg::KSMShutdownDlg( QWidget*
         btnHalt->setFont( btnFont );
         buttonlay->addWidget( btnHalt );
         connect(btnHalt, SIGNAL(clicked()), SLOT(slotHalt()));
-        if ( sdtype == KApplication::ShutdownTypeHalt )
+        if ( sdtype == KApplication::ShutdownTypeHalt || getenv("KDM_AUTOLOGIN") ) 
             btnHalt->setFocus();
 
         // Reboot