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.9
Fabio D'Urso 14 years ago
parent d41f00e4bb
commit 77af86fddc
  1. 2
      shell/shell.cpp

@ -122,7 +122,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