Commit 65034732 authored by Jekyll Wu's avatar Jekyll Wu

Use Qt::UniqueConnectio to avoid duplicate connection

parent cc7af665
......@@ -537,9 +537,8 @@ void ViewManager::createView(Session* session, ViewContainer* container, int ind
// notify this view manager when the session finishes so that its view
// can be deleted
//
// TODO - Find a more efficient a way to avoid multiple connections
disconnect(session , SIGNAL(finished()) , this , SLOT(sessionFinished()));
connect(session , SIGNAL(finished()) , this , SLOT(sessionFinished()));
// Use Qt::UniqueConnection to avoid duplicate connection
connect(session, SIGNAL(finished()), this, SLOT(sessionFinished()), Qt::UniqueConnection);
TerminalDisplay* display = createTerminalDisplay(session);
const Profile::Ptr profile = SessionManager::instance()->sessionProfile(session);
......
Markdown is supported
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