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
remotes/origin/KDE/4.10
Albert Astals Cid 14 years ago
parent 719a0df886
commit aa042bd0f4
  1. 6
      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();

Loading…
Cancel
Save