File kdepasswd-fix.diff of Package kdebase4

Subject: Make kdepasswd work
From: upstream
Signed-Off-By: Lubos Lunak
Bug: bnc#438250
Patch-upstream: r883957
Relates: kdelibs4/kdepasswd-fix.diff

------------------------------------------------------------------------
r883957 | aacid | 2008-11-13 22:14:40 +0000 (Thu, 13 Nov 2008) | 4 lines
Changed paths:
   M /trunk/KDE/kdebase/apps/kdepasswd/passwddlg.cpp

Make it really work, using password() does not work until you call accept().

Patch by "leo peng" <leo1295@gmail.com>

------------------------------------------------------------------------
Index: kdepasswd/passwddlg.cpp
===================================================================
--- apps/kdepasswd/passwddlg.cpp	(revision 883956)
+++ apps/kdepasswd/passwddlg.cpp	(revision 883957)
@@ -115,7 +115,10 @@
 {
     PasswdProcess proc(m_User);
 
-    QString p=password();
+    QString p;
+    if(!checkAndGetPassword(&p)){
+        return;
+    }
 
     if (p.length() > 8)
     {