Bug 102956 - Copying link adress in tab is not working properly
Summary: Copying link adress in tab is not working properly
Status: RESOLVED FIXED
Alias: None
Product: akregator
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-31 19:36 UTC by Łukasz Derkacz
Modified: 2005-06-24 17:55 UTC (History)
0 users

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 Łukasz Derkacz 2005-03-31 19:36:40 UTC
Version:           1.0.2 (using KDE 3.4.0, compiled sources)
Compiler:          gcc version 3.3.4
OS:                Linux (i686) release 2.4.26

When I open link in a tab, and then try to copy it's adress to clipboard, akregator is copying it to the klipper but it's not increasing active clipboard entry. So after copying that link and trying to do Paste somewhere, klipper is inserting next to last entry. But that link copied form akregator in in clipboard, and I have to switch to it manually.
Regards and Great Job!
Comment 1 Frank Osterfeld 2005-04-15 18:22:31 UTC
Works for me (tm). By the way, 1.0.2 is not intended to be used together with KDE 3.4.
Can anyone confirm this?
Comment 2 Teemu Rytilahti 2005-04-16 16:09:45 UTC
I can confirm. Copy link from "Read full story" link doesn't work either... May be a Klipper bug?
Comment 3 Heinrich Wendel 2005-06-23 20:27:31 UTC
how do you paste the content? By strg+v, or by middle mouse click?
Comment 4 Łukasz Derkacz 2005-06-23 21:33:35 UTC
Middle click :) Ctrl+v works fine despite that the copied link in not highlighted in Klipper.
Comment 5 Heinrich Wendel 2005-06-24 16:59:45 UTC
that's the way klipper seems to work, e.g. in the edit bookmarks dialog it's only copied to crtl+v as well.

what do you mean by highlighted?
Comment 6 Łukasz Derkacz 2005-06-24 17:29:00 UTC
Highlighted - marked, it means that there's "X" next to string which is active, in Klipper when You press right mouse. Make this
1) select in Klipper one string
2) Copy some address from aKregator tab
3) Right clik on Klipper
And You see that none of the strings are active
Maybe this is the reason why Middle click is not working.
Comment 7 Heinrich Wendel 2005-06-24 17:54:58 UTC
SVN commit 428564 by lanius:

BUG: 102956
fix copy link address to use QClipboard::Selection as well

 M  +2 -2      tabwidget.cpp  


--- trunk/KDE/kdepim/akregator/src/tabwidget.cpp #428563:428564
@@ -219,8 +219,8 @@
     KURL url;
     if (KHTMLView *view = dynamic_cast<KHTMLView*>(currentItem)) url = view->part()->url();
     else return;
-    QClipboard *cb = QApplication::clipboard();
-    if(cb) cb->setText(url.prettyURL());
+    kapp->clipboard()->setText(url.prettyURL(), QClipboard::Selection);
+    kapp->clipboard()->setText(url.prettyURL(), QClipboard::Clipboard);
 }
 
 void TabWidget::slotCloseTab()
Comment 8 Heinrich Wendel 2005-06-24 17:55:12 UTC
found the bug, but not enabling the item is the default behaviour