From 77af86fddcdcc0e46914d93c6fee3bc7858d509f Mon Sep 17 00:00:00 2001 From: Fabio D'Urso Date: Tue, 21 Aug 2012 22:57:37 +0200 Subject: [PATCH] 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) --- shell/shell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/shell.cpp b/shell/shell.cpp index 8b99ce4ef..7a105742f 100644 --- a/shell/shell.cpp +++ b/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 )