After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 485802 - "Close Window" and "Close Tab" should require user confirmation by default
"Close Window" and "Close Tab" should require user confirmation by default
Status: RESOLVED DUPLICATE of bug 168320
Product: gnome-terminal
Classification: Core
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-10-11 17:09 UTC by Nicolas Maquet
Modified: 2012-08-17 20:58 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Nicolas Maquet 2007-10-11 17:09:42 UTC
This has happened one time too many. I launch an expensive CPU-bound job in gnome terminal. After *hours* of computation, I get the results outputted in the terminal, so I select the output and want to copy it in the clipboard. 

ALAS, instead of hitting "copy", I hit "Close tab" (which is *right frikkin' next to it*), gnome-terminal does not ask for a confirmation and BAM, loses all my work.

Please, do fix this, I use gnome-terminal for hours every day and this would sav e a lot of people from the same shameful and stupid experience.

Simple way to fix this:

In gnome-terminal -> Edit -> Preferences -> Behavior, just add a "Closing windows and tabs" paragrah with a (checked by default) checkbox titled "Ask before closing a terminal window."

Thanks !

Other information:
Comment 1 Christian Persch 2009-01-18 14:48:18 UTC

*** This bug has been marked as a duplicate of 168320 ***
Comment 2 Mike 2012-08-17 20:58:16 UTC
168320 is a different bug.

168320 is a request to hold the window open if a non-shell process is running.

This bug is a request to hold the window open even if the shell is idle, to 
protect unsaved text in the scrollback historu.