New connections and the query added in QT is not getting restored on QT tab restore
Please note that security bugs or issues should be reported to [email protected].
Describe the bug
Issue-1: When we create a Query tool connection but later on add a new connection to the same query tool through New Connection Dialog, the new connection is not getting restored after pgAdmin reopens.
Only the query written before creating the new connection gets restored, not the query written after creation of new connection.
Issue-2: If we write some query on a query tool and then after sometime we remove the query, and close the app and reopen, it restores the query tool and also restore the query that we removed before closing the app.
To Reproduce
Steps to reproduce the behavior:
- Open QT
- Add new connections through the dropdown
- write some query
- on restore of app it shows the old connection not the new connection with the query
Expected behavior Issue-1: It should restore all the connections and the queries if present for the specific query tool.
Issue-2: It should only restore the QT but not the query.