From aa042bd0f416edfb0eedcac6be6ba90b1c1c161c Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sat, 18 Aug 2012 18:36:30 +0200 Subject: [PATCH] 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 df40f7d64..8b99ce4ef 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();