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

wilder-portage
Jekyll Wu 15 years ago
parent c246e94fb5
commit 2818d96536
  1. 7
      src/Session.cpp

@ -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())
{

Loading…
Cancel
Save