Bug 379146 - KTorrent shouldn't keep stealing focus when adding a torrent
Summary: KTorrent shouldn't keep stealing focus when adding a torrent
Status: RESOLVED WORKSFORME
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: 5.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-24 07:10 UTC by Najjar
Modified: 2022-12-10 05:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Najjar 2017-04-24 07:10:13 UTC
KTorrent should keep its current state when adding a torrent or magnet URI. The current behavior is if KTorrent is minimized or in the background, it pops up after clicking on a magnet and steals focus, then pops up again when the contents of the URI have been cached (i.e. the download dialog).

This gets annoying. Especially if it's an old magnet that takes sometime to find (and the user goes to do something else), or when trying to add multiple torrents/magnets (e.g. a page with 10 magnets, each time I'll have to deal with KTorrent to minimize it, which defeats the purpose of dealing with them all later at once).

So, if the user has KTorrent in the foreground there's no problem if the dialog pops up, because the program is in focus. But if KTorrent is in the background, it should stay like that and not steal focus. Maybe show a task manager notification (a la Dolphin when copying/moving for example) instead.
Comment 1 Christoph Feck 2017-04-27 21:36:48 UTC
There is an option to add torrents automatically.

If you do not want this, you probably want to change something before it starts.
Comment 2 Kerry N 2017-10-21 20:29:49 UTC
(In reply to Christoph Feck from comment #1)
> There is an option to add torrents automatically.
> 
> If you do not want this, you probably want to change something before it
> starts.

Something seems to have changed in recent versions. It used to open the torrent file selection dialog in the background (if ktorrent was in the background) and flashed the ktorrent button on the task bar blue. Then, when I am ready, I could switch to ktorrent and make my selections.

Now (at least as of 5.0.1), ktorrent will steal focus and make itself the active application when the file selection dialog pops up. No application should steal focus and a user should not have to bypass some of the workflow to prevent this from happening.
Comment 3 Justin Zobel 2022-11-10 08:51:46 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-11-25 05:16:52 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-12-10 05:14:05 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!