ff058d499c
- fix crashes when adding a new network folder (kdebug:162285) - KFileMetaInfo freezes when Strigi indexes non-sequential files (kdebug:163050) - renaming in FTP overwrites existing files without confirmation (kdebug:127793)
21 lines
694 B
Diff
21 lines
694 B
Diff
--- kdelibs/kfile/kprotocolcombo.cpp 2008/06/01 16:35:46 815383
|
|
+++ kdelibs/kfile/kprotocolcombo.cpp 2008/06/01 16:37:33 815384
|
|
@@ -36,15 +36,11 @@
|
|
{
|
|
qSort(m_protocols);
|
|
QStringList::iterator it = m_protocols.begin();
|
|
- QStringList::iterator itEnd = m_protocols.end();
|
|
menu = new QMenu(this);
|
|
- while (it != itEnd) {
|
|
+ while (it != m_protocols.end()) {
|
|
const KUrl url(*it + "://");
|
|
if (!KProtocolManager::supportsListing(url)) {
|
|
- QStringList::iterator tempIt = it;
|
|
- ++tempIt;
|
|
- m_protocols.erase(it);
|
|
- it = tempIt;
|
|
+ it = m_protocols.erase(it);
|
|
} else {
|
|
++it;
|
|
}
|