[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdebase/konqueror/iconview
From:       David Faure <faure () kde ! org>
Date:       2004-09-23 12:42:34
Message-ID: 20040923124234.08FA4126DD () office ! kde ! org
[Download RAW message or body]

CVS commit by faure: 

Removed dead code. Clicking on trashed files is allowed
(but some kde apps don't have proper support for readonly files in general).


  M +8 -4      konq_iconview.cc   1.476


--- kdebase/konqueror/iconview/konq_iconview.cc  #1.475:1.476
@@ -713,8 +713,11 @@ void KonqKfmIconView::slotReturnPressed(
     KURL url = fileItem->url();
     url.cleanPath();
-    bool isIntoTrash =  url.isLocalFile() && \
url.path(1).startsWith(KGlobalSettings::trashPath()); +#if 0 // We now allow to open \
files from the trash. They are readonly, it's up to the apps to handle that \
correctly... +    bool isIntoTrash = url.protocol() == "trash";
     if ( !isIntoTrash || (isIntoTrash && fileItem->isDir()) )
     {
+#endif
         lmbClicked( fileItem );
+#if 0
     }
     else
@@ -722,4 +725,5 @@ void KonqKfmIconView::slotReturnPressed(
         KMessageBox::information(0L, i18n("You must take the file out of the trash \
before being able to use it."));  }
+#endif
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic