aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilipe Saraiva <[email protected]>2016-05-27 15:12:06 -0300
committerFilipe Saraiva <[email protected]>2016-05-27 15:12:06 -0300
commit47cd4f4ed40d5e799b376346e00fca1841fa0e2b (patch)
tree44ced581b21ed8655c806f1f88e019615e2dc153
parent03242efc03679d54105745ff21beacfb9850a59b (diff)
Fix the crash of Cantor after close it using Sage backend
BUG: 328185 FIXED-IN: 16.08
-rw-r--r--src/backends/sage/sagesession.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backends/sage/sagesession.cpp b/src/backends/sage/sagesession.cpp
index 1afea36..cacd1c1 100644
--- a/src/backends/sage/sagesession.cpp
+++ b/src/backends/sage/sagesession.cpp
@@ -137,11 +137,11 @@ void SageSession::login()
void SageSession::logout()
{
qDebug()<<"logout";
- interrupt();
+
disconnect(m_process, SIGNAL(finished ( int, QProcess::ExitStatus )), this, SLOT(processFinished(int, QProcess::ExitStatus)));
m_process->pty()->write("exit\n");
- m_process->deleteLater();
+ m_process->kill();
//Run sage-cleaner to kill all the orphans
KProcess::startDetached(SageSettings::self()->path().toLocalFile(),QStringList()<<QLatin1String("-cleaner"));