summaryrefslogtreecommitdiffstats
path: root/redhat/tdebase/kdebase-3.5.12-kdesu-noignorebutton.patch
blob: bc3583e5e9480a0af0fdbf7e9083b6206df61529 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
diff -rcb kdebase.ORI/kdesu/kdesu/sudlg.cpp kdebase/kdesu/kdesu/sudlg.cpp
*** kdebase.ORI/kdesu/kdesu/sudlg.cpp	2010-12-17 22:55:07.725798945 +0100
--- kdebase/kdesu/kdesu/sudlg.cpp	2010-12-17 22:55:49.378797283 +0100
***************
*** 15,21 ****
  #include "sudlg.h"
  
  KDEsuDialog::KDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep,const TQString& icon, bool withIgnoreButton)
!      : KPasswordDialog(Password, enableKeep, (withIgnoreButton ? User1:NoDefault), icon)
  {
      KConfig* config = KGlobal::config();
      config->setGroup("super-user-command");
--- 15,21 ----
  #include "sudlg.h"
  
  KDEsuDialog::KDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep,const TQString& icon, bool withIgnoreButton)
!      : KPasswordDialog(Password, enableKeep, 0, icon)
  {
      KConfig* config = KGlobal::config();
      config->setGroup("super-user-command");
***************
*** 34,45 ****
      } else {
          if (m_User == "root") {
  	    prompt = i18n("The action you requested needs root privileges. "
! 	    "Please enter root's password below or click "
! 	    "Ignore to continue with your current privileges.");
          } else {
  	    prompt = i18n("The action you requested needs additional privileges. "
! 		"Please enter the password for \"%1\" below or click "
! 		"Ignore to continue with your current privileges.").arg(m_User);
  	}
      }
      setPrompt(prompt);
--- 34,43 ----
      } else {
          if (m_User == "root") {
  	    prompt = i18n("The action you requested needs root privileges. "
! 	    "Please enter root's password below.");
          } else {
  	    prompt = i18n("The action you requested needs additional privileges. "
! 		"Please enter the password for \"%1\" below.").arg(m_User);
  	}
      }
      setPrompt(prompt);