Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Konsole
Commits
65034732
Commit
65034732
authored
Jun 02, 2012
by
Jekyll Wu
Browse files
Use Qt::UniqueConnectio to avoid duplicate connection
parent
cc7af665
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ViewManager.cpp
View file @
65034732
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment