Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 224389
Collapse All | Expand All

(-)/kfile/kprotocolcombo.cpp (-6 / +2 lines)
Lines 36-50 Link Here
36
{
36
{
37
    qSort(m_protocols);
37
    qSort(m_protocols);
38
    QStringList::iterator it = m_protocols.begin();
38
    QStringList::iterator it = m_protocols.begin();
39
    QStringList::iterator itEnd = m_protocols.end();
40
    menu = new QMenu(this);
39
    menu = new QMenu(this);
41
    while (it != itEnd) {
40
    while (it != m_protocols.end()) {
42
        const KUrl url(*it + "://");
41
        const KUrl url(*it + "://");
43
        if (!KProtocolManager::supportsListing(url)) {
42
        if (!KProtocolManager::supportsListing(url)) {
44
            QStringList::iterator tempIt = it;
43
	    it = m_protocols.erase(it);
45
            ++tempIt;
46
            m_protocols.erase(it);
47
            it = tempIt;
48
        } else {
44
        } else {
49
            ++it;
45
            ++it;
50
        }
46
        }

Return to bug 224389