Do not show the save changes prompt twice if the main window is closed

Call m_part->closeUrl with promptToSave=false in the Shell dtor, so that
the save changes prompt is not shown again (it's already shown because
of Shell::queryClose)
remotes/origin/KDE/4.10
Fabio D'Urso 14 years ago
parent 09067debaf
commit 6d011cd2f0
  1. 2
      shell/shell.cpp

@ -131,7 +131,7 @@ Shell::~Shell()
if ( m_part )
{
writeSettings();
m_part->closeUrl();
m_part->closeUrl( false );
}
m_part = 0; // It is deleted by the KPart/QObject machinery
if ( m_args )

Loading…
Cancel
Save