<?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>101839</bug_id>
          
          <creation_ts>2005-03-18 21:04:01 +0000</creation_ts>
          <short_desc>&quot;Move to trash&quot; is unavailable in list view when in media IOslave</short_desc>
          <delta_ts>2005-03-18 23:06:01 +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>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>1</everconfirmed>
          <reporter>starbase218</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>325385</commentid>
    <comment_count>0</comment_count>
    <who name="">starbase218</who>
    <bug_when>2005-03-18 21:04:01 +0000</bug_when>
    <thetext>Version:            (using KDE KDE 3.4.0)
Installed from:    Unlisted Binary Package
OS:                OpenBSD

The action &quot;Move to trash&quot; is greyed out in the context menu in media:/ locations when and any of the list views is used. The action is available in icon view mode or when using regular URL&apos;s.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325397</commentid>
    <comment_count>1</comment_count>
    <who name="">groot</who>
    <bug_when>2005-03-18 21:31:29 +0000</bug_when>
    <thetext>Confirmed on FreeBSD. I use, say, &quot;media:/ar0s1a&quot; and set the view mode to plain Icon View; RMB on the file COPYRIGHT shows I can move it to trash. Switch view mode to List Info View, RMB on same file shows move to trash as a disabled action.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325398</commentid>
    <comment_count>2</comment_count>
    <who name="">starbase218</who>
    <bug_when>2005-03-18 21:35:02 +0000</bug_when>
    <thetext>Correction: I&apos;m not running OpenBSD, but Kubuntu 5.4. I must have accidentally selected OpenBSD because I used backspace, which I had mapped to the Back button in khotkeys.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>325419</commentid>
    <comment_count>3</comment_count>
    <who name="Pascal Létourneau">pascal.letourneau</who>
    <bug_when>2005-03-18 23:06:00 +0000</bug_when>
    <thetext>CVS commit by pletourn: 

Enable the trash action inside media:/
BUG:101839


  M +6 -5      konq_listview.cc   1.223.2.1


--- kdebase/konqueror/listview/konq_listview.cc  #1.223:1.223.2.1
@@ -56,7 +56,5 @@ KonqListViewFactory::KonqListViewFactory
 KonqListViewFactory::~KonqListViewFactory()
 {
-  if ( s_instance )
     delete s_instance;
-  if ( s_defaultViewProps )
     delete s_defaultViewProps;
 
@@ -118,4 +116,5 @@ void ListViewBrowserExtension::updateAct
   int canCopy = 0;
   int canDel = 0;
+  int canTrash = 0;
   bool bInTrash = false;
   KFileItemList lstItems = m_listView-&gt;selectedFileItems();
@@ -129,9 +128,11 @@ void ListViewBrowserExtension::updateAct
     if (  KProtocolInfo::supportsDeleting(  url ) )
       canDel++;
+    if ( !item-&gt;localPath().isEmpty() )
+      canTrash++;
   }
 
   emit enableAction( &quot;copy&quot;, canCopy &gt; 0 );
   emit enableAction( &quot;cut&quot;, canDel &gt; 0 );
-  emit enableAction( &quot;trash&quot;, canDel &gt; 0 &amp;&amp; !bInTrash &amp;&amp; m_listView-&gt;url().isLocalFile() );
+  emit enableAction( &quot;trash&quot;, canDel &gt; 0 &amp;&amp; !bInTrash &amp;&amp; canDel == canTrash );
   emit enableAction( &quot;del&quot;, canDel &gt; 0 );
   emit enableAction( &quot;properties&quot;, lstItems.count() &gt; 0 &amp;&amp; KPropertiesDialog::canDisplay( lstItems ) );
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>