Ticket #7259: gbee-7259.patch

File gbee-7259.patch, 1.3 KB (added by Stuart Auchterlonie, 17 years ago)

stuartm's patch to fix issue

  • programs/mythtv-setup/importicons.cpp

     
    109109    if (m_nMaxCount > 0)
    110110    {
    111111        m_missingIter = m_missingEntries.begin();
    112         doLoad();
     112        if (!doLoad())
     113        {
     114            if (!m_strMatches.isEmpty())
     115                askSubmit(m_strMatches);
     116        }
    113117    }
    114118}
    115119
     
    162166    m_missingIter++;
    163167
    164168    if (!doLoad())
    165         Close();
     169    {
     170        if (!m_strMatches.isEmpty())
     171            askSubmit(m_strMatches);
     172        else
     173            Close();
     174    }
    166175}
    167176
    168177void ImportIconsWizard::menuSelection(MythUIButtonListItem *item)
     
    209218        m_missingCount++;
    210219        m_missingIter++;
    211220        if (!doLoad())
    212             Close();
     221        {
     222            if (!m_strMatches.isEmpty())
     223                askSubmit(m_strMatches);
     224            else
     225                Close();
     226        }
    213227    }
    214228    else
    215229    {
     
    390404    {
    391405        VERBOSE(VB_CHANNEL, "doLoad Icon search complete");
    392406        enableControls(STATE_DISABLED);
    393         if (!m_strMatches.isEmpty())
    394             askSubmit(m_strMatches);
    395407        return false;
    396408    }
    397409    else