| 180 | } |
| 181 | |
| 182 | bool SessionManager::removeSession(const QString &session) |
| 183 | { |
| 184 | if (!d->sessionList.contains(session)) |
| 185 | return false; |
| 186 | |
| 187 | d->sessionList.removeOne(session); |
| 188 | d->lastActiveTimes.remove(session); |
| 189 | Q_EMIT sessionRemoved(session); |
| 190 | |
| 191 | const auto &file = sessionFile(session); |
| 192 | if (QFile::exists(file)) |
| 193 | return QFile::remove(file); |
| 194 | return false; |
| 195 | } |
| 196 | |
| 197 | void SessionManager::removeSessions(const QStringList &sessions) |
| 198 | { |