Ticket #1570: cancel_show_devices.diff

File cancel_show_devices.diff, 737 bytes (added by Aaron McCarthy <mccarthy.aaron@…>, 15 years ago)
  • mythgallery/mythgallery/iconview.cpp

     
    10241024
    10251025void IconView::actionMainMenu()
    10261026{
     1027    if (m_showDevices)
     1028    {
     1029        QDir d(m_currDir);
     1030        if (!d.exists())
     1031            m_currDir = m_galleryDir;
     1032
     1033        loadDirectory(m_currDir);
     1034        m_showDevices = false;
     1035    }
     1036
    10271037    clearMenu(m_submenuType);
    10281038    m_submenuType->Reset();
    10291039
     
    13011311        m_currDevice->disconnect(this);
    13021312        mon->Unlock(m_currDevice);
    13031313    }
     1314    else
     1315        m_currDir = m_galleryDir;
    13041316#endif
    13051317
    13061318    m_currDevice = NULL;