Confirm Close Tab

reformed's profile image reformed posted 3 years ago in Feature discussion Permalink

It is so easy to accidentally close query tabs, whether you are simply trying to switch to a different tab and accidentally click on that tiny "x," or accidentally double-click on the tab itself.

Please add a confirmation dialog that asks the user if they are sure they want to close the tab.

Thank you

ansgar's profile image ansgar posted 3 years ago Permalink

There is already one, but you might have turned it off:

Description

You can reactivate that prompt in Tools > Preferences > Files and tabs:

Description

reformed's profile image reformed posted 3 years ago Permalink

Yes this setting activates the prompt. However, if you have multiple unsaved tabs open, and try to close the client, it will open this prompt for every tab. This is why I disabled this setting. I normally work with 10 or so unsaved tabs, and it is cumbersome to have to close the prompt 10 times after each work day.

Can you update this prompt so that it only opens when a tab is double-clicked or the X is clicked, not when the client itself is closed? Because the prompt even says, when you close the client, that the tabs are auto-saved, so there's really no reason to have the prompt then.

Thanks

micus's profile image micus posted 1 year ago Permalink

it will open this prompt for every tab. This is why I disabled this setting. I normally work with 10 or so unsaved tabs

Same here, super annoying. I'm using the "Close tab on middleclick" option instead. Would be great to have an option to hide the Close button on tabs. When there are many and they are stuck together it's too easy to accidentally click on them and lose the precious unsaved queries.

reformed's profile image reformed posted 1 year ago Permalink

There is simply no reason for HeidiSQL to warn you about closing unsaved tabs if you enable the setting to reopen unsaved tabs. Sure, if that setting is not enabled, HeidiSQL should absolutely definitely warn.

This behavior is correctly implemented by Notepad++.

reformed's profile image reformed posted 1 month ago Permalink

This has finally been implemented in version 12.18:

  • Suppress dialog for saving modified SQL on app close, when tabs get auto-restored - (4ca01d9)

It's working great. Thanks ansgar!

ralfmr's profile image ralfmr posted 4 weeks ago Permalink

I cannot find that option in the current version 12.20 for Linux. I would expect it on the "Files and Tabs" tab.

ansgar's profile image ansgar posted 4 weeks ago Permalink

There is no new option. The mentioned change only suppresses the dialog per tab when you have auto-restore enabled.

ralfmr's profile image ralfmr posted 4 weeks ago Permalink

Ok, understand. The above post sound to me like there's a new option in the settings.

Thanks for the clarification.

Please login to leave a reply, or register at first.