[Kget] [Bug 134489] kget downloading files from dynamic php pages get wrong names for files
Carsten Pfeiffer
pfeiffer at kde.org
Mon Sep 25 13:37:20 CEST 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=134489
pfeiffer kde org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From pfeiffer kde org 2006-09-25 13:37 -------
SVN commit 588225 by pfeiffer:
Show the right filename for dynamic download things
BUG: 134489
M +6 -6 main.cpp
--- branches/KDE/3.5/kdenetwork/kget/main.cpp #588224:588225
@ -168,19 +168,19 @
else if(args->count()>=2)
{
KURL::List urls;
- QString dest;
for( int i=0; i < args->count(); ++i){
urls.append(KURL::fromPathOrURL( args->arg(i)));
}
- // Sometimes valid filenames are not recognised by KURL::isLocalFile(), they are marked as unvalid then
- if ( args->count()==2 & ( urls.last().isLocalFile() | !urls.last().isValid()))
+ // Sometimes valid filenames are not recognised by KURL::isLocalFile(), they are marked as invalid then
+ if ( args->count()==2 && ( urls.last().isLocalFile() || !urls.last().isValid()))
{
- dest=urls.last().path();
- kmain->addTransferEx( urls.first(), dest );
+ kmain->addTransferEx( urls.first(), urls.last() );
}
else
- kmain->addTransfers( urls, dest );
+ {
+ kmain->addTransfers( urls, QString() );
+ }
}
args->clear();
More information about the Kget
mailing list