diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2016-10-01 17:21:04 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2016-10-01 17:21:04 -0500 |
commit | 3a5dcbbc69fa07b4067b4f82ed0919daf84989dc (patch) | |
tree | cbe05328b986b0cbbf561d8c3bf7555136bd07f1 /tdm/kfrontend | |
parent | 6bd9497d8e3802328fb8ffb864fe6ad9d3f392e8 (diff) | |
download | tdebase-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.cpp | 4 |
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); |