<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>204322</bug_id>
          
          <creation_ts>2009-08-18 20:49:21 +0000</creation_ts>
          <short_desc>Copy with rename file name is broken if url has protocol</short_desc>
          <delta_ts>2009-08-19 12:45:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kio</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Compiled Sources</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Giuseppe Della Bianca">giusdbg</reporter>
          <assigned_to name="David Faure">faure</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>814546</commentid>
    <comment_count>0</comment_count>
    <who name="Giuseppe Della Bianca">giusdbg</who>
    <bug_when>2009-08-18 20:49:21 +0000</bug_when>
    <thetext>Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

Hi.

In

file
jobuidelegate.cpp

function
KIO::RenameDialog_Result KIO::JobUiDelegate::askFileRename(KJob * job,
                                                           const QString &amp; caption,
                                                           const QString&amp; src,
                                                           const QString &amp; dest,
                                                           KIO::RenameDialog_Mode mode,
                                                           QString&amp; newDest,
                                                           KIO::filesize_t sizeSrc,
                                                           KIO::filesize_t sizeDest,
                                                           time_t ctimeSrc,
                                                           time_t ctimeDest,
                                                           time_t mtimeSrc,
                                                           time_t mtimeDest)

section
    KIO::RenameDialog_Result res = static_cast&lt;RenameDialog_Result&gt;(dlg.exec());
    newDest = dlg.newDestUrl().toLocalFile();

The newDest = dlg.newDestUrl().toLocalFile(); not work with url with protocol, I think is good dlg.newDestUrl().path();</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>814902</commentid>
    <comment_count>1</comment_count>
    <who name="David Faure">faure</who>
    <bug_when>2009-08-19 12:45:28 +0000</bug_when>
    <thetext>SVN commit 1013226 by dfaure:

Giuseppe Della Bianca is completely right, this should be path(), not toLocalFile(). Wrong Windows porting...
Fix will be in 4.3.1.
BUG: 204322


 M  +1 -1      jobuidelegate.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&amp;revision=1013226</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>