Skip to content

Unsaved Query closes without prompt #938

Closed

Description

@russlamb

Details for the issue

Query tabs can be closed without any prompt to save or warning about lost data.

I had several queries open for a coding test. Each query corresponded to an answer to a test question. I had saved the queries to SQL files, but i needed to close the database. I closed out of all the open query tabs, not realizing i had made changes to each of them after I had last saved. To my dismay, when I opened the files again all my changes were lost. It cost me a couple hours of lost work.

In other database management GUI, when the user clicks to close out a query they are presented with a prompt like "You have unsaved changes. Do you want to save before closing?" to prevent lost work. DB Browser should add this for unsaved query tabs.

Useful extra information

I'm opening this issue because:

  • DB4S is crashing
  • DB4S has a bug
  • [X ] DB4S needs a feature
  • DB4S has another problem

I'm using DB4S on:

  • [X ] Windows: ( _version: 3.91 )
  • Linux: ( distro: ___ )
  • Mac OS: ( version: ___ )
  • Other: ___

I'm using DB4S version:

  • [ X] 3.9.1
  • 3.9.0
  • Other: ___

I have also:

Activity

  1. justinclift commented on Jan 20, 2017

    @justinclift
    Member

    Yep, this does make sense to implement. Shouldn't be to hard to do either. 😄

  2. AGlezB commented on Jun 13, 2017

    @AGlezB

    👍 for this to be in the next release.
    👍 👍 👍 👍 👍 if implemented like SSMS: a single dialog with all unsaved files.
    20170613-122330-000542 microsoft sql server management studio

  3. justinclift commented on Jun 13, 2017

    @justinclift
    Member

    Ahhh, good thinking. Yep, that makes sense. 😄

  4. self-assigned this
    on Jun 13, 2017
  5. beRto- commented on Nov 17, 2019

    @beRto-

    I got burned by this a couple of times recently! I wish DB4S would have saved me from myself! :)

  6. iKlsR commented on Nov 17, 2019

    @iKlsR
    Member

    Yikes, hmm. I still don't have the time to get to this 😥. I will peek again month end if somebody doesn't take it as it shouldn't be that big a task.

  7. mgrojo commented on Feb 17, 2020

    @mgrojo
    Member

    @russlamb, are you still using DB4S. We finally managed to implement this prompt. If you'd like to try it, you can install a nightly build or wait to the imminent 3.12 release. I'll close this issue now, since other users have already confirmed that it is working for them, but feel free to reopen it if I've missed something.

  8. added this to the 3.12.0 - Next release milestone on Feb 17, 2020
  9. self-assigned this
    on Feb 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions