Skip to content

Warn Before Closing Query Tab with Unsaved SQL #1686

Closed

Description

@gkjoyes

Problem

Description

Currently, when a user writes SQL queries in a query tab and then closes the tab (using the close button or Cmd + W), the tab closes immediately without any warning or confirmation message. As a result, all unsaved queries and work in progress are lost.

Steps to Reproduce

  1. Open a query tab.
  2. Write or modify one or more SQL queries.
  3. Execute some queries or leave queries unsaved.
  4. Close the tab using the close button or Cmd + W.

Current Behavior

The query tab closes immediately without any confirmation dialog, causing all written queries in the tab to be lost.

Expected Behavior

If the query tab contains unsaved or modified content, TablePro should display a confirmation dialog such as:

This tab contains unsaved queries. Are you sure you want to close it?

Options:

  • Cancel
  • Close Without Saving

Related database type

PostgreSQL

Activity

  1. added
    enhancement
    on Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions