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

@@ -4384,7 +4384,9 @@ define('tools.querytool', [
else
self.ignore_on_close.unsaved_query = true;
// 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;
case 2: //Save
self.close_on_save = true;