common: Always let QVariant::fromValue() deduce the type
[quassel.git] / src / core / core.cpp
index b0c02c1..cf01e5f 100644 (file)
@@ -302,7 +302,7 @@ void Core::saveState()
     if (_storage) {
         QVariantList activeSessions;
         for (auto&& user : instance()->_sessions.keys())
-            activeSessions << QVariant::fromValue<UserId>(user);
+            activeSessions << QVariant::fromValue(user);
         _storage->setCoreState(activeSessions);
     }
 }