Remove unnecessary Ignore button from the tdesu dialog.

This is in support of bug report 985.
pull/2/head
Darrell Anderson 11 years ago
parent edf3004ec3
commit da9d48c4d5

@ -15,7 +15,7 @@
#include "sudlg.h" #include "sudlg.h"
KDEsuDialog::KDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep,const TQString& icon, bool withIgnoreButton, int timeout) 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(); TDEConfig* config = TDEGlobal::config();
config->setGroup("super-user-command"); config->setGroup("super-user-command");
@ -34,12 +34,10 @@ KDEsuDialog::KDEsuDialog(TQCString user, TQCString auth_user, bool enableKeep,co
} else { } else {
if (m_User == "root") { if (m_User == "root") {
prompt = i18n("The action you requested needs root privileges. " prompt = i18n("The action you requested needs root privileges. "
"Please enter root's password below or click " "Please enter root's password below.");
"Ignore to continue with your current privileges.");
} else { } else {
prompt = i18n("The action you requested needs additional privileges. " prompt = i18n("The action you requested needs additional privileges. "
"Please enter the password for \"%1\" below or click " "Please enter the password for \"%1\" below.").arg(static_cast<const char *>(m_User));
"Ignore to continue with your current privileges.").arg(static_cast<const char *>(m_User));
} }
} }
setPrompt(prompt); setPrompt(prompt);

Loading…
Cancel
Save