<?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>105787</bug_id>
          
          <creation_ts>2005-05-17 03:34:41 +0000</creation_ts>
          <short_desc>Ark selection/extration, extracts only the last selected</short_desc>
          <delta_ts>2005-05-29 15:07:51 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>ark</product>
          <component>general</component>
          <version>2.5</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="Zé">mmodem00</reporter>
          <assigned_to name="Harald Hvaal">metellius</assigned_to>
          <cc>ibc</cc>
    
    <cc>rakuco</cc>
          
          <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>342710</commentid>
    <comment_count>0</comment_count>
    <who name="Zé">mmodem00</who>
    <bug_when>2005-05-17 03:34:41 +0000</bug_when>
    <thetext>Version:           2.5 (using KDE 3.4.0, Mandrake Linux Cooker i586 - Cooker)
Compiler:          gcc version 3.4.3 (Mandrakelinux 10.2 3.4.3-7mdk)
OS:                Linux (i686) release 2.6.11-6mdk

Lets take this example, i oponed a rar archive that haves 4 files inside, of those 4 files i selected 3 with ctrl+mouse click, and what happens is that is only extracted the last file selected and not all 3 files selected.

strange..</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>344150</commentid>
    <comment_count>1</comment_count>
    <who name="Henrique Pinto">henrique.pinto</who>
    <bug_when>2005-05-22 03:08:13 +0000</bug_when>
    <thetext>SVN commit 416609 by henrique:

    * Fix bug #105787: Mark &quot;Selected Files&quot; as default in the
      extraction dialog if more than one file is selected.

      BUG: 105787



 M  +7 -2      trunk/KDE/kdeutils/ark/arkwidget.cpp  
 M  +1 -1      trunk/KDE/kdeutils/ark/arkwidget.h  
 M  +16 -0     trunk/KDE/kdeutils/ark/extractdlg.cpp  
 M  +2 -1      trunk/KDE/kdeutils/ark/extractdlg.h  


--- trunk/KDE/kdeutils/ark/arkwidget.cpp #416608:416609
@@ -1657,9 +1657,9 @@
 
 
     ExtractDlg *dlg = new ExtractDlg(this, 0, m_url.fileName());
-    
+
     QString tmp; // for KFileDialog::getStartUrl()
-    
+
     if (m_extractOnly)
     {
       dlg-&gt;setURL( KURL::fromPathOrURL( QDir::currentDirPath() ) );
@@ -1680,6 +1680,11 @@
     {
         dlg-&gt;disableSelectedFilesOption();
     }
+    else if ( m_nNumSelectedFiles &gt; 1 )
+    {
+        dlg-&gt;setDefaultExtractOp( ExtractDlg::Selected );
+    }
+
     if (archiveContent-&gt;currentItem() == NULL)
     {
         dlg-&gt;disableCurrentFileOption();
--- trunk/KDE/kdeutils/ark/arkwidget.h #416608:416609
@@ -35,7 +35,6 @@
 #include &lt;ktempdir.h&gt;
 
 #include &lt;qvbox.h&gt;
-
 #include &quot;arch.h&quot;
 
 class QPoint;
@@ -45,6 +44,7 @@
 class QListViewItem;
 class QDragMoveEvent;
 class QDropEvent;
+
 class KPopupMenu;
 class KProcess;
 class KConfig;
--- trunk/KDE/kdeutils/ark/extractdlg.cpp #416608:416609
@@ -185,6 +185,22 @@
 }
 
 void
+ExtractDlg::setDefaultExtractOp( ExtractOp op )
+{
+	switch ( op )
+	{
+		case Current:
+			m_radioCurrent-&gt;setChecked(  true );
+			break;
+		case Selected:
+			m_radioSelected-&gt;setChecked( true );
+			break;
+		default:
+			m_radioAll-&gt;setChecked( true );
+	}
+}
+
+void
 ExtractDlg::extractDirChanged(const QString &amp;text )
 {
 	enableButtonOK(!text.isEmpty());
--- trunk/KDE/kdeutils/ark/extractdlg.h #416608:416609
@@ -59,8 +59,9 @@
   KURL extractDir();
   void disableSelectedFilesOption();
   void disableCurrentFileOption() { m_radioCurrent-&gt;setEnabled(false); }
+  void setDefaultExtractOp( ExtractOp op );
   bool viewFolderAfterExtraction() const { return m_viewFolderAfterExtraction-&gt;isChecked(); }
-  
+
   void setURL( const KURL&amp; );
 public slots:
   //void browse();
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>344244</commentid>
    <comment_count>2</comment_count>
    <who name="Zé">mmodem00</who>
    <bug_when>2005-05-22 15:25:28 +0000</bug_when>
    <thetext>Why fixes are only commited to HEAD and not also to BRANCHES?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>345601</commentid>
    <comment_count>3</comment_count>
    <who name="Henrique Pinto">henrique.pinto</who>
    <bug_when>2005-05-27 04:26:59 +0000</bug_when>
    <thetext>Huh? This fix WAS commited to the branch, and will be part of KDE 3.4.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>346109</commentid>
    <comment_count>4</comment_count>
    <who name="Henrique Pinto">henrique.pinto</who>
    <bug_when>2005-05-29 00:41:47 +0000</bug_when>
    <thetext>*** Bug 106381 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>346201</commentid>
    <comment_count>5</comment_count>
    <who name="Iñaki Baz Castillo">ibc</who>
    <bug_when>2005-05-29 13:51:34 +0000</bug_when>
    <thetext>Bug 106381 has been marked as a duplicate of this bug, but I think is not the same. If there are 4 files and I select 3 of them, arK extracts ALL the files (not just the last one selected).

Maybe it is the same bug, and it is already fixed. I hope it but don&apos;t know.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>346230</commentid>
    <comment_count>6</comment_count>
    <who name="Henrique Pinto">henrique.pinto</who>
    <bug_when>2005-05-29 15:07:51 +0000</bug_when>
    <thetext>Em Dom 29 Mai 2005 08:51, ibc escreveu:
&gt; Bug 106381 has been marked as a duplicate of this bug, but I think
&gt; is not the same. If there are 4 files and I select 3 of them, arK extracts
&gt; ALL the files (not just the last one selected).
&gt;
&gt; Maybe it is the same bug, and it is already fixed. I hope it but don&apos;t
&gt; know.


I cannot reproduce your report with Ark 2.5.1 (part of KDE 3.4.1), which 
contains the fix for #105787, what lead me to believe that the fix also fixed 
#106381. Please reopen your report if the problem is reproducible with KDE 
3.4.1.
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>