Bug 323909 - The "The program ... is currently running in this session. Are you sure you want to close it?" confirmation is displayed when I press Shift+Ctrl+W, but not Alt+F4
Summary: The "The program ... is currently running in this session. Are you sure you ...
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-23 06:37 UTC by Sasha Unspecified
Modified: 2015-10-07 18:49 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sasha Unspecified 2013-08-23 06:37:11 UTC
If a program is running in a tab, Konsole tries to warn me when I'm trying to close the tab: "The program ... is currently running in this session.  Are you sure you want to close it?".

But no warning is given when I close all tabs at once by pressing Alt+F4, even if some/all of the tabs are running programs. It is a bit insonsistent: to warn user that tries to close one program, but don't warn him when he tries to close many.

IMO, the message like "The following programs are running:
...
...
...
...
Are you sure you want to close them?" should be displayed when I press Alt+F4. Only "non-default" programs should be listed (e.g. if all tabs are just running bash, then no message is needed). Maybe, it may look like kate's confirmation when I press Alt+F4 in kate (having several open tabs with unsaved data).

P.S.: Or just remove "The program ... is currently running in this session.  Are you sure you want to close it?" warning, when user is trying to close just one tab. Because current behaviour is just a bit inconsistent.

Reproducible: Always

Steps to Reproduce:
1. Open Konsole.
2. Type "sleep 1000"; press Enter.
3. Open new tab.
4. Type "sleep 1000"; press Enter.
5. Close thw whole Konsole window by clicking [X] or pressing Alt+F4.
Actual Results:  
Konsole has been quietly closed without any warning.
However, it I'd closed tabs one-by-one (e.g. with Shift+Ctrl+W), then warning for each tab would be displayed.

Expected Results:  
Either warn user when he is closing several tabs with running programs (with listing tab numbers/program names). Or don't warn him when he is closing just one tab with running program.

Version 2.8.5.
Comment 1 Sasha Unspecified 2013-08-23 06:40:16 UTC
> However, it I'd closed tabs one-by-one (e.g. with Shift+Ctrl+W),
> then warning for each tab would be displayed.

However, *if* I'd closed tabs one-by-one (e.g. with Shift+Ctrl+W), then warning for each tab would be displayed.
Comment 2 Shlomi Fish 2013-08-24 12:01:30 UTC
Can confirm here:

shlomif@telaviv1:~$ konsole --version
Qt: 4.8.5
KDE Development Platform: 4.11.00
Konsole: 2.11
shlomif@telaviv1:~$
Comment 3 Shlomi Fish 2013-08-25 11:39:05 UTC
Some updates: I realised that by default Konsole displays an "Are you sure" dialogue when there are multiple tabs open instead of quietly closing it. This can be disabled by the user. So what we can do now is:

1. Mark this bug as "WONTFIX" because konsole already can warn on multiple tabs.

2. If the "close multiple tabs silently" option was enabled, then refuse to close the window if there is more than one tab with an active program (display a dialogue).

Am I missing something?

Regards,

-- Shlomi Fish
Comment 4 Sasha Unspecified 2013-09-06 12:26:56 UTC
Dear Shlomi Fish. With all respect, I don't agree with you. I'll explain a bit later.
Comment 5 Sasha Unspecified 2015-10-07 18:49:29 UTC
The behavior is better in konsole 2.13.2.