Commit 2818d965 authored by Jekyll Wu's avatar Jekyll Wu
Browse files

Calling Session::run() on a already running sesssion makes no sense.

parent c246e94f
......@@ -401,6 +401,13 @@ QString Session::shellSessionId() const
void Session::run()
{
// extra safeguard for potential bug.
if ( isRunning() )
{
kWarning() << "Attempted to re-run an already running session.";
return;
}
//check that everything is in place to run the session
if (_program.isEmpty())
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment