From e38596f9f2cc74ec218e04a7e67bfaecb91de2b1 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 18 Sep 2015 14:57:11 -0500 Subject: [PATCH] When reactivating card watching, if a card is inserted re-emit valid certificates to client application --- tdecore/tdehw/tdecryptographiccarddevice.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/tdecore/tdehw/tdecryptographiccarddevice.cpp b/tdecore/tdehw/tdecryptographiccarddevice.cpp index 0125c39a9..dd3c77888 100644 --- a/tdecore/tdehw/tdecryptographiccarddevice.cpp +++ b/tdecore/tdehw/tdecryptographiccarddevice.cpp @@ -459,7 +459,13 @@ void TDECryptographicCardDevice::enableCardMonitoring(bool enable) { #ifdef WITH_PCSC if (enable) { if (m_watcherObject && m_watcherThread) { - // Monitoring thread already active; abort! + // Monitoring thread already active + if ((cardPresent() == 1) && (cardX509Certificates().count() > 0)) { + // Card was already inserted and initialized + emit(certificateListAvailable(this)); + } + + // Abort! return; }