]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Hmm, same mistakes... looks like a conversion script gone mad.
authorKevin Ottens <ervin@kde.org>
Wed, 22 Nov 2006 12:12:27 +0000 (12:12 +0000)
committerKevin Ottens <ervin@kde.org>
Wed, 22 Nov 2006 12:12:27 +0000 (12:12 +0000)
svn path=/trunk/playground/utils/dolphin/; revision=606929

src/dolphin.cpp
src/dolphinview.cpp

index 495eb53f5ec4de7deda98152161b9d362dbbf7e1..a068b602ffaa94f48fb02065aeacaa3a88fe6e9c 100644 (file)
@@ -363,7 +363,7 @@ void Dolphin::createFolder()
 
     QString name(i18n("New Folder"));
     baseURL.path(KUrl::AddTrailingSlash);
 
     QString name(i18n("New Folder"));
     baseURL.path(KUrl::AddTrailingSlash);
-    
+
 
     if (baseURL.isLocalFile() && QFileInfo(baseURL.path(KUrl::AddTrailingSlash) + name).exists()) {
         name = KIO::RenameDlg::suggestName(baseURL, i18n("New Folder"));
 
     if (baseURL.isLocalFile() && QFileInfo(baseURL.path(KUrl::AddTrailingSlash) + name).exists()) {
         name = KIO::RenameDlg::suggestName(baseURL, i18n("New Folder"));
@@ -1526,8 +1526,8 @@ void Dolphin::updateEditActions()
 
         KFileItemList::const_iterator it = list->begin();
         const KFileItemList::const_iterator end = list->end();
 
         KFileItemList::const_iterator it = list->begin();
         const KFileItemList::const_iterator end = list->end();
-        KFileItem* item = 0;
         while (it != end) {
         while (it != end) {
+            KFileItem* item = *it;
             const KUrl& url = item->url();
             // only enable the 'Move to Trash' action for local files
             if (!url.isLocalFile()) {
             const KUrl& url = item->url();
             // only enable the 'Move to Trash' action for local files
             if (!url.isLocalFile()) {
index 94872064277c0d2fbe493376312d62aa84a53fa0..bacfebf405120fa3fda222d12935ee3232fcfe09 100644 (file)
@@ -509,8 +509,8 @@ KUrl::List DolphinView::selectedURLs() const
     if (list != 0) {
         KFileItemList::const_iterator it = list->begin();
         const KFileItemList::const_iterator end = list->end();
     if (list != 0) {
         KFileItemList::const_iterator it = list->begin();
         const KFileItemList::const_iterator end = list->end();
-        KFileItem* item = 0;
         while (it != end) {
         while (it != end) {
+            KFileItem* item = *it;
             urls.append(item->url());
             ++it;
         }
             urls.append(item->url());
             ++it;
         }