diff options
| author | Kevin Ottens <[email protected]> | 2006-11-22 12:12:27 +0000 |
|---|---|---|
| committer | Kevin Ottens <[email protected]> | 2006-11-22 12:12:27 +0000 |
| commit | 63f6ef7656f6ec9c4a2f5f5c92dcd08878638cbf (patch) | |
| tree | 1ad89be230ea21ac67ed4d397e0d99f3533e2190 | |
| parent | 5d1f8dc51773b482fa05bd7d7a2dd6b603e464a6 (diff) | |
Hmm, same mistakes... looks like a conversion script gone mad.
svn path=/trunk/playground/utils/dolphin/; revision=606929
| -rw-r--r-- | src/dolphin.cpp | 4 | ||||
| -rw-r--r-- | src/dolphinview.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/dolphin.cpp b/src/dolphin.cpp index 495eb53f5..a068b602f 100644 --- a/src/dolphin.cpp +++ b/src/dolphin.cpp @@ -363,7 +363,7 @@ void Dolphin::createFolder() 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")); @@ -1526,8 +1526,8 @@ void Dolphin::updateEditActions() KFileItemList::const_iterator it = list->begin(); const KFileItemList::const_iterator end = list->end(); - KFileItem* item = 0; while (it != end) { + KFileItem* item = *it; const KUrl& url = item->url(); // only enable the 'Move to Trash' action for local files if (!url.isLocalFile()) { diff --git a/src/dolphinview.cpp b/src/dolphinview.cpp index 948720642..bacfebf40 100644 --- a/src/dolphinview.cpp +++ b/src/dolphinview.cpp @@ -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(); - KFileItem* item = 0; while (it != end) { + KFileItem* item = *it; urls.append(item->url()); ++it; } |
