--- /kfile/kprotocolcombo.cpp 2008-05-01 12:12:56.000000000 +0200 +++ /kfile/kprotocolcombo.cpp 2008-06-01 16:40:14.000000000 +0200 @@ -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; }