diff options
author | Darrell Anderson <[email protected]> | 2013-04-23 09:15:54 -0500 |
---|---|---|
committer | Darrell Anderson <[email protected]> | 2013-04-23 09:15:54 -0500 |
commit | da9d48c4d599ede076ad584832b8734a875f7867 (patch) | |
tree | 6da5972a4afbd9ab60e2d1080b069d4877d0b4ca | |
parent | edf3004ec3bd7bf7d2d1c3074281ce22188f3e35 (diff) | |
download | tdebase-da9d48c4d599ede076ad584832b8734a875f7867.tar.gz tdebase-da9d48c4d599ede076ad584832b8734a875f7867.zip |
Remove unnecessary Ignore button from the tdesu dialog.
This is in support of bug report 985.
-rw-r--r-- | tdesu/tdesu/sudlg.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tdesu/tdesu/sudlg.cpp b/tdesu/tdesu/sudlg.cpp index 713409631..e24bf325e 100644 --- a/tdesu/tdesu/sudlg.cpp +++ b/tdesu/tdesu/sudlg.cpp @@ -15,7 +15,7 @@ #include "sudlg.h" KDEsuDialog::KDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep,const TQString& icon, bool withIgnoreButton, int timeout) - : KPasswordDialog(Password, enableKeep, (withIgnoreButton ? User1:NoDefault), icon) + : KPasswordDialog(Password, enableKeep, 0, icon) { TDEConfig* config = TDEGlobal::config(); config->setGroup("super-user-command"); @@ -34,12 +34,10 @@ KDEsuDialog::KDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep,co } 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."); + "Please enter root's password below."); } 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(static_cast<const char *>(m_User)); + "Please enter the password for \"%1\" below.").arg(static_cast<const char *>(m_User)); } } setPrompt(prompt); |