mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kpty: disconnect the stateChanged() signal before calling KPtyDevice::logout()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
84377d0e9f
commit
f206d78122
1 changed files with 1 additions and 1 deletions
|
@ -79,9 +79,9 @@ KPtyProcess::~KPtyProcess()
|
|||
Q_D(KPtyProcess);
|
||||
|
||||
if (state() != QProcess::NotRunning && d->addUtmp) {
|
||||
d->pty->logout();
|
||||
disconnect(SIGNAL(stateChanged(QProcess::ProcessState)),
|
||||
this, SLOT(_k_onStateChanged(QProcess::ProcessState)));
|
||||
d->pty->logout();
|
||||
}
|
||||
delete d->pty;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue