<?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>59250</bug_id>
          
          <creation_ts>2003-06-02 13:34:50 +0000</creation_ts>
          <short_desc>Crash when using file search and trying to copy all files found afterwards</short_desc>
          <delta_ts>2003-06-02 20:57:34 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konqueror</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>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Oliver Weber">almoeli</reporter>
          <assigned_to name="Konqueror Bugs">konqueror-bugs-null</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>137211</commentid>
    <comment_count>0</comment_count>
    <who name="Oliver Weber">almoeli</who>
    <bug_when>2003-06-02 13:34:50 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.1.1a)
Installed from:    Compiled From Sources
Compiler:          gcc 2.95.3 
OS:          Linux

Konqueror crashes, when you do the following steps:

- Open &apos;Search files&apos; from the &apos;Extras&apos; menu
- Search files for example &apos;*.txt&apos; all other patterns work also. Include subfolders.
- Several files are found in several subfolders
- Choose &apos;Select All&apos; from the &apos;Edit&apos; menu
- Choose &apos;Copy&apos; from the edit menu

The error was reproducable under kde 3.0.0 and under kde 3.1.1a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>137260</commentid>
    <comment_count>1</comment_count>
    <who name="Waldo Bastian">bastian</who>
    <bug_when>2003-06-02 20:57:35 +0000</bug_when>
    <thetext>Subject: kdebase/libkonq

CVS commit by waba: 

CCMAIL: 59250-done@bugs.kde.org
Don&apos;t crash on copy without a currentItem() (BR59250)


  M +12 -4     konq_iconviewwidget.cc   1.240


--- kdebase/libkonq/konq_iconviewwidget.cc  #1.239:1.240
@@ -1087,11 +1087,10 @@ KonqIconDrag * KonqIconViewWidget::konqD
 
     KonqIconDrag * drag = new KonqIconDrag( dragSource );
-    // Position of the item clicked in the view
-    QPoint itempos = currentItem()-&gt;pixmapRect( FALSE ).topLeft();
-    // Set pixmap, with the correct offset
-    drag-&gt;setPixmap( *currentItem()-&gt;pixmap(), m_mousePos - itempos );
+    QIconViewItem *primaryItem = currentItem();
     // Append all items to the drag object
     for ( QIconViewItem *it = firstItem(); it; it = it-&gt;nextItem() ) {
         if ( it-&gt;isSelected() ) {
+          if (!primaryItem)
+             primaryItem = it;
           KURL url = (static_cast&lt;KFileIVI *&gt;(it))-&gt;item()-&gt;url();
           QString itemURL = KURLDrag::urlToString(url);
@@ -1107,4 +1106,13 @@ KonqIconDrag * KonqIconViewWidget::konqD
         }
     }
+
+    if (primaryItem)
+    {
+       // Position of the item clicked in the view
+       QPoint itempos = primaryItem-&gt;pixmapRect( FALSE ).topLeft();
+       // Set pixmap, with the correct offset
+       drag-&gt;setPixmap( *primaryItem-&gt;pixmap(), m_mousePos - itempos );
+    }
+
     return drag;
 }


</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>