summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kdesktop/lock/lockprocess.cc3
-rw-r--r--kdesktop/lock/lockprocess.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc
index f4c22b863..4552d082b 100644
--- a/kdesktop/lock/lockprocess.cc
+++ b/kdesktop/lock/lockprocess.cc
@@ -186,6 +186,7 @@ LockProcess::LockProcess(bool child, bool useBlankOnly)
setupPipe();
mShowLockDateTime = KDesktopSettings::showLockDateTime();
+ mlockDateTime = TQDateTime::currentDateTime();
kapp->installX11EventFilter(this);
@@ -1532,7 +1533,7 @@ bool LockProcess::checkPass()
}
showVkbd();
- PasswordDlg passDlg( this, &greetPlugin, (mShowLockDateTime)?TQDateTime::currentDateTime():TQDateTime());
+ PasswordDlg passDlg( this, &greetPlugin, (mShowLockDateTime)?mlockDateTime:TQDateTime());
int ret = execDialog( &passDlg );
hideVkbd();
diff --git a/kdesktop/lock/lockprocess.h b/kdesktop/lock/lockprocess.h
index 63291f857..e2c9ee575 100644
--- a/kdesktop/lock/lockprocess.h
+++ b/kdesktop/lock/lockprocess.h
@@ -20,6 +20,7 @@
#include <tqvaluestack.h>
#include <tqmessagebox.h>
#include <tqpixmap.h>
+#include <tqdatetime.h>
#include <X11/Xlib.h>
@@ -192,6 +193,8 @@ private:
int mBackingStartupDelayTimer;
KSMModalDialog* m_startupStatusDialog;
+
+ TQDateTime mlockDateTime;
};
#endif