From d41f00e4bb142e07584ab25e7623e485b7f4e458 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid <aacid@kde.org> Date: Sat, 18 Aug 2012 18:36:30 +0200 Subject: [PATCH 2/2] Close the url on shell destruction Otherwise we end up in a busy loop on part deletion if there are pending requests Should not happen but if this fixes it don't see the need to lose time investigating why given the number of todo things --- shell/shell.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/shell/shell.cpp b/shell/shell.cpp index df40f7d..8b99ce4 100644 --- a/shell/shell.cpp +++ b/shell/shell.cpp @@ -119,7 +119,11 @@ void Shell::delayedOpen() Shell::~Shell() { - if ( m_part ) writeSettings(); + if ( m_part ) + { + writeSettings(); + m_part->closeUrl(); + } m_part = 0; // It is deleted by the KPart/QObject machinery if ( m_args ) m_args->clear(); -- 1.7.11.4