Closed
Description
Steps to reproduce this issue
- Create new tab and have some content in it
- Load a SQL file, (via Ctrl+O, File->Load SQL File, or context menu within tabs content)
- The currently selected tab, gets REPLACED with the loaded file, and if it had unsaved content (unsaved file, or saved file with modifications), it doesn't warn about it, losing all unsaved data.
Current behavior
The current tab gets completely replaced without warning, losing all content (saved or not).
Expected behavior
The loaded file should open in ANOTHER tab, never replacing the current one. That is completely anti-intuitive and may lead to lost data.
Even if it is meant to load in the SAME tab, (which I see no reason to be), it should at least warn that current unsaved content would be lost and prompt to save it first.
Possible solution
Never replace current tab with loaded files, always open them in new tabs, and let the already open tabs as they are.
Environment
- HeidiSQL version: 9.5.0.5277