Ensure that the query tool panel gets closed when clicking on the 'Don't Save' button. Fixes #5416

This commit is contained in:
Yogesh Mahajan
2020-05-28 16:39:26 +05:30
committed by Akshay Joshi
parent 9468c16233
commit e10f1274dc
3 changed files with 24 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ notes for it.
.. toctree:: .. toctree::
:maxdepth: 1 :maxdepth: 1
release_notes_4_23
release_notes_4_22 release_notes_4_22
release_notes_4_21 release_notes_4_21
release_notes_4_20 release_notes_4_20

View File

@@ -0,0 +1,20 @@
************
Version 4.23
************
Release date: 2020-06-25
This release contains a number of bug fixes and new features since the release of pgAdmin4 4.22.
New features
************
Housekeeping
************
Bug fixes
*********
| `Issue #5416 <https://redmine.postgresql.org/issues/5416>`_ - Ensure that the query tool panel gets closed when clicking on the 'Don't Save' button.

View File

@@ -4384,7 +4384,9 @@ define('tools.querytool', [
else else
self.ignore_on_close.unsaved_query = true; self.ignore_on_close.unsaved_query = true;
// Go back to check for any other needed confirmations before closing // Go back to check for any other needed confirmations before closing
self.check_needed_confirmations_before_closing_panel(); if (!self.check_needed_confirmations_before_closing_panel()){
closeEvent.cancel = true;
}
break; break;
case 2: //Save case 2: //Save
self.close_on_save = true; self.close_on_save = true;