diff options
author | Timothy Pearson <[email protected]> | 2012-04-27 03:19:38 -0500 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-04-27 03:19:38 -0500 |
commit | e899b7beb6b0f2db8c08dfdc14c29efb99046086 (patch) | |
tree | 76b9346919e552892bc28d83993501e4d4a992fa /kdesktop/lock/securedlg.cc | |
parent | 601b75a1e4158dbf0c293e682d5db0078a41e736 (diff) | |
download | tdebase-e899b7beb6b0f2db8c08dfdc14c29efb99046086.tar.gz tdebase-e899b7beb6b0f2db8c08dfdc14c29efb99046086.zip |
Harden lock against rare race condition that caused two password prompts to appear
Provide alternate secure dialog text string when username cannot be obtained
Diffstat (limited to 'kdesktop/lock/securedlg.cc')
-rw-r--r-- | kdesktop/lock/securedlg.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/kdesktop/lock/securedlg.cc b/kdesktop/lock/securedlg.cc index 717d98cc0..08a70a17d 100644 --- a/kdesktop/lock/securedlg.cc +++ b/kdesktop/lock/securedlg.cc @@ -91,7 +91,12 @@ SecureDlg::SecureDlg(LockProcess *parent) if (userString == "") { userString = user.loginName(); } - mLogonStatus->setText(i18n("'%1' is currently logged on").arg( user.fullName() )); + if (userString != "") { + mLogonStatus->setText(i18n("'%1' is currently logged on").arg( user.fullName() )); + } + else { + mLogonStatus->setText(i18n("You are currently logged on")); // We should never get here, and this message is somewhat obtuse, but it is better than displaying two qotation marks with no text between them... + } KSeparator *sep = new KSeparator( KSeparator::HLine, frame ); |