Steps to reproduce:
- Create two query tabs
- Write "SELECT 1" for the first query tab and "SELECT 2" for the second query tab
- In the second query tab, click delete the first query tab.
- Unsaved changes dialog is opened. Click the Save button to confirm saving the content of query tab 1 to a file.
A file named "Query Tab 1" is downloaded to the user's disk with "SELECT 1" as the content.
"Query Tab 2" is actually downloaded.