Bug 168865

Summary: copy text from the article's view widget doesn't work as expected
Product: [Applications] akregator Reporter: George Kiagiadakis <mail>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: adaptee, dev+kde, finex, jjm, lehoangphuongbg, me, pano_90, ste, thrawnkb, wonko
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Debian testing   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description George Kiagiadakis 2008-08-10 20:50:41 UTC
Version:           1.2.50 (using KDE 4.1.0)
Installed from:    Debian testing/unstable Packages
Compiler:          gcc version 4.3.1 (Debian 4.3.1-2) 
OS:                Linux

The problem goes as follows. I select some text from the article viewer, right click and copy (or ctrl+c) and I want to paste it somewhere else (usually kopete). However this doesn't work out of the box. I have to select, copy, go to klipper and select the copied text and then paste, or else the previously selected text will be pasted.

I believe this is because akregator does not put the selected text in the clipboard, but klipper gets the text from the selection anyway, so I have to select the text on klipper before I can paste.
Comment 1 FiNeX 2008-08-13 10:48:43 UTC
Bug confirmed using current trunk too. Even the "Copy" action from RMB menu doesn't work.
Comment 2 FiNeX 2008-09-27 02:06:32 UTC
*** Bug 171396 has been marked as a duplicate of this bug. ***
Comment 3 FiNeX 2008-12-20 20:48:03 UTC
*** Bug 178109 has been marked as a duplicate of this bug. ***
Comment 4 Frank Osterfeld 2009-01-02 20:25:22 UTC
SVN commit 904675 by osterfeld:

Fix copy text in article viewer
Patch by Michael Leupold <lemma@confuego.org.
CCMAIL:lemma@confuego.org
BUG: 168865


 M  +3 -1      articleviewer.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=904675
Comment 5 Frank Osterfeld 2009-01-02 20:27:33 UTC
SVN commit 904677 by osterfeld:

forwardport 904675:

Fix copy text in article viewer
Patch by Michael Leupold <lemma@confuego.org.
CCMAIL:lemma@confuego.org
CCBUG: 168865


 M  +3 -1      articleviewer.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=904677
Comment 6 Ricardo 2009-01-14 21:07:41 UTC
in 4.2 RC1, this is still a problem, the menu item now does work, but not the Ctrl+C shortcut
Comment 7 FiNeX 2009-01-15 09:28:09 UTC
I agree with Ricardo: CTRL+C still doesn't work: it has been only fixed the menu action. I've reproduced the bug using trunk r910859.
Comment 8 Jonathan Marten 2009-06-26 18:24:40 UTC
*** Bug 186370 has been marked as a duplicate of this bug. ***
Comment 9 Frank Steinmetzger 2010-05-24 19:17:14 UTC
I was about to file a bug, then found this one. It still doesn’t work in Akregator 1.6.3, KDE 4.4.3. When I press Ctrl+C, the clipboard’s previous content is only cleared. However, this malfunction occurs only in an own tab, but not in the main article view (below the article list).

I also successfully tested it with a new and clean user account to rule out messed up settings in my long-evolved profile.
Comment 10 Wonko 2011-05-31 10:56:17 UTC
Another year has passed, and Akregator in KDE 4.6.3 still shows the problem. Is it really that hard to fix?
Comment 11 Jekyll Wu 2012-01-02 07:45:29 UTC
The problem still exists in KDE SC 4.8 RC1. It is really a pity. 

I did some analysis. If I understand correctly, ArticleViewer::slotCopy() is where the copying happens. And here comes the real problem behind this report : it is not that the method is buggy in putting selected contents onto clipboard, but that the methode is not triggered at all when I press Ctrl+C. And that is because the 'Copy' action is plugged only when the context menu is shown. So Ctrl+C, the well known shortcut for the 'Copy' action, does not work.

I wonder whether that is an coding mistake, or an intentional decision to provide 'Copy' action only through context menu (is there some good reason?). Anyway, it should be relatively easy to fix for those who are familiar with the code. Frankly, I'm neither familiar with the code nor the application.

Hope that helps.
Comment 12 Lê Hoàng Phương 2012-07-12 15:42:52 UTC
I can not reproduce this bug in the 4.9 beta and master (even when klipper isn't running). If no other person can reproduce the bug, I propose it to be closed.
Comment 13 Wonko 2012-07-12 15:59:06 UTC
I'm not using 4.9 yet, but it still happens in 4.8.4. When I open any article in its own tab, mark some text and enter Ctrl-C, Ctrl-V in another application will not paste it.
Comment 14 Lê Hoàng Phương 2012-07-12 16:30:00 UTC
Oh, silly me, I didn't read the bug carefully. I only press Ctrl + C in the Article Viewer below the Article List and it works. I should look inside the code now.
Comment 15 Denis Kurz 2016-09-24 19:41:05 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of akregator (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 16 Denis Kurz 2017-01-07 21:51:30 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.