Skip to content

Loading SQL file Replaces current tab instead of opening a new one. Never warns of unsaved data. #270

Closed
@yphastos

Description

@yphastos

Steps to reproduce this issue

  1. Create new tab and have some content in it
  2. Load a SQL file, (via Ctrl+O, File->Load SQL File, or context menu within tabs content)
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmedIssue verified by project memberenhancementEnhances an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions