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.9
Albert Astals Cid 14 years ago
parent 4eee1f3479
commit d41f00e4bb
  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