| 415 | } |
| 416 | |
| 417 | Session* SessionController::createSession( const QString& name ) |
| 418 | { |
| 419 | Q_D(SessionController); |
| 420 | |
| 421 | Session* s; |
| 422 | if(name.startsWith(QLatin1Char('{'))) { |
| 423 | s = new Session( QUuid(name).toString(), this ); |
| 424 | } else { |
| 425 | s = new Session( QUuid::createUuid().toString(), this ); |
| 426 | s->setName( name ); |
| 427 | } |
| 428 | d->addSession( s ); |
| 429 | updateXmlGuiActionList(); |
| 430 | return s; |
| 431 | } |
| 432 | |
| 433 | void SessionController::deleteSession( const ISessionLock::Ptr& lock ) |
| 434 | { |
nothing calls this directly
no test coverage detected