<?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>102332</bug_id>
          
          <creation_ts>2005-03-24 01:24:53 +0000</creation_ts>
          <short_desc>KPDF doesn&apos;t ask when overwriting a existing file</short_desc>
          <delta_ts>2005-03-24 21:11:06 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>Unmaintained</classification>
          <product>kpdf</product>
          <component>general</component>
          <version>0.4</version>
          <rep_platform>unspecified</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="Iñaki Baz Castillo">ibc</reporter>
          <assigned_to name="Albert Astals Cid">aacid</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>327471</commentid>
    <comment_count>0</comment_count>
    <who name="Iñaki Baz Castillo">ibc</who>
    <bug_when>2005-03-24 01:24:53 +0000</bug_when>
    <thetext>Version:           0.4 (using KDE 3.4.0, Debian Package 4:3.4.0-0pre1 (3.1))
Compiler:          gcc version 3.3.5 (Debian 1:3.3.5-8)
OS:                Linux (i686) release 2.6.7-ck6

Open a PDF file and go to &quot;Save as...&quot; and select another existing PDF file. KPDF won&apos;t ask you for overwriting the old file, so it is something inusual in KDE. Maybe a bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>327837</commentid>
    <comment_count>1</comment_count>
    <who name="Albert Astals Cid">aacid</who>
    <bug_when>2005-03-24 21:11:06 +0000</bug_when>
    <thetext>CVS commit by aacid: 

When saving a file ask if we are going to overwrite a existing file
BUG: 102332


  M +6 -0      part.cpp   1.33


--- kdegraphics/kpdf/part.cpp  #1.32:1.33
@@ -557,4 +557,10 @@ void Part::slotSaveFileAs()
     if ( saveURL.isValid() &amp;&amp; !saveURL.isEmpty() )
     {
+        if ( KIO::NetAccess::exists( saveURL, false, widget() ) )
+        {
+            if (KMessageBox::questionYesNo( widget(), i18n(&quot;A file named \&quot;%1\&quot; already exists. Are you sure you want to overwrite it?&quot;).arg(saveURL.filename())) != KMessageBox::Yes)
+                return;
+        }
+
         if ( !KIO::NetAccess::file_copy( url(), saveURL, -1, true ) )
             KMessageBox::information( 0, i18n(&quot;File could not be saved in &apos;%1&apos;. Try to save it to another location.&quot;).arg( saveURL.prettyURL() ) );
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>