summaryrefslogtreecommitdiffstats
path: root/tdm/kfrontend
diff options
context:
space:
mode:
Diffstat (limited to 'tdm/kfrontend')
-rw-r--r--tdm/kfrontend/kgreeter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/tdm/kfrontend/kgreeter.cpp b/tdm/kfrontend/kgreeter.cpp
index a42ffd0ac..5da8bfc51 100644
--- a/tdm/kfrontend/kgreeter.cpp
+++ b/tdm/kfrontend/kgreeter.cpp
@@ -916,7 +916,9 @@ void KGreeter::cryptographicCardInserted(TDECryptographicCardDevice* cdevice) {
if (!user_active && vt_active) {
// Select the correct user
verify->setUser(login_name);
- userView->setEnabled(false);
+ if (userView) {
+ userView->setEnabled(false);
+ }
verifySetUser(login_name);
verify->lockUserEntry(true);