Bug 70983 - knode suggests first filename for saving all attachments
Summary: knode suggests first filename for saving all attachments
Status: RESOLVED FIXED
Alias: None
Product: knode
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: 0.7.6
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-21 20:36 UTC by Jens
Modified: 2004-05-23 14:06 UTC (History)
0 users

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 Jens 2003-12-21 20:36:20 UTC
Version:           0.7.6 (using KDE 3.1.93 (CVS >= 20031028),  (testing/unstable))
Compiler:          gcc version 3.3.2 (Debian)
OS:          Linux (i686) release 2.6.0-test11-bk2

Hi everybody,

Given: a post in a newsgroup with 4 attachments: A, B, C, D.

I click on the first attachment, a file/save dialog pops up. I choose a directory and click OK.
I click on the second attachment, a file/save dialog pops up with the name of the FIRST attachment pre-entered in the file name box. Same for all other attachments.

If you use RMB->Save Attachment the right file name is used.



Thanks,
Jens Benecke
Comment 1 Volker Krause 2004-05-23 14:06:18 UTC
CVS commit by vkrause: 

Fix LMB opening/saving of attachments if the article has more than one.

CCMAIL: 70914-done@bugs.kde.org, 70983-done@bugs.kde.org


  M +5 -2      knarticlewidget.cpp   1.178


--- kdepim/knode/knarticlewidget.cpp  #1.177:1.178
@@ -1485,9 +1485,12 @@ void KNArticleWidget::anchorClicked(cons
   anchorType type=ATunknown;
   QString target;
-  kdDebug()<<" target :"<<a<<endl;
+  kdDebug(5003)<<" target :"<<a<<endl;
   if(a.left(17)=="internal://author") {
     type=ATauthor;
   }
   else if(a.left(15)=="internal://att=") {
+    if(a.right(1) == "/")
+      target=a.mid(15, a.length()-16);
+    else
     target=a.mid(15, a.length()-15);
     type=ATattachment;