summaryrefslogtreecommitdiffstats
path: root/tdm
diff options
context:
space:
mode:
Diffstat (limited to 'tdm')
-rw-r--r--tdm/cryptocardwatcher/watcher.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tdm/cryptocardwatcher/watcher.cc b/tdm/cryptocardwatcher/watcher.cc
index 021f59949..ecd4e8f3c 100644
--- a/tdm/cryptocardwatcher/watcher.cc
+++ b/tdm/cryptocardwatcher/watcher.cc
@@ -66,6 +66,10 @@ void CardWatcher::cryptographicCardInserted(TDECryptographicCardDevice* cdevice)
if (user.startsWith(login_name + ": ")) {
// Found active session
user_active = true;
+
+ // Switch VTs
+ DM().switchVT((*it).vt);
+
break;
}
if (user == "Unused") {