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();