summaryrefslogtreecommitdiffstats
path: root/tdm/kfrontend
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2016-10-01 17:21:04 -0500
committerTimothy Pearson <[email protected]>2016-10-01 17:21:04 -0500
commit3a5dcbbc69fa07b4067b4f82ed0919daf84989dc (patch)
treecbe05328b986b0cbbf561d8c3bf7555136bd07f1 /tdm/kfrontend
parent6bd9497d8e3802328fb8ffb864fe6ad9d3f392e8 (diff)
downloadtdebase-3a5dcbbc69fa07b4067b4f82ed0919daf84989dc.tar.gz
tdebase-3a5dcbbc69fa07b4067b4f82ed0919daf84989dc.zip
Do not crash when card is inserted and the user list view is hidden
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);