summaryrefslogtreecommitdiff
path: root/x11/kdelibs4/files/patch-post-3.3.2-kdelibs-kio.diff
blob: 674ba009495bb390cb4d2b05ee5f2efffadd4de6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- kio/kio/job.cpp	9 Nov 2004 00:50:35 -0000	1.397.2.5
+++ kio/kio/job.cpp	8 Dec 2004 01:08:15 -0000	1.397.2.8
@@ -3119,14 +3119,14 @@ void CopyJob::copyNextFile()
                        if ( f.open( IO_ReadWrite ) )
                        {
                            f.close();
                            KSimpleConfig config( path );
                            config.setDesktopGroup();
-                           config.writePathEntry( QString::fromLatin1("URL"), (*it).uSource.url() );
-                           KURL urlName = (*it).uSource;
-                           urlName.setPass( "" );
-                           config.writeEntry( QString::fromLatin1("Name"), urlName.url() );
+                           KURL url = (*it).uSource;
+                           url.setPass( "" );
+                           config.writePathEntry( QString::fromLatin1("URL"), url.url() );
+                           config.writeEntry( QString::fromLatin1("Name"), url.url() );
                            config.writeEntry( QString::fromLatin1("Type"), QString::fromLatin1("Link") );
                            QString protocol = (*it).uSource.protocol();
                            if ( protocol == QString::fromLatin1("ftp") )
                                config.writeEntry( QString::fromLatin1("Icon"), QString::fromLatin1("ftp") );
                            else if ( protocol == QString::fromLatin1("http") )