Ticket #9771: freespace.patch

File freespace.patch, 1.2 KB (added by Jonatan <mythtv@…>, 9 years ago)

Seems to apply both to 0.24-fixes and master

  • mythtv/programs/mythfrontend/playbackbox.cpp

    diff --git a/mythtv/programs/mythfrontend/playbackbox.cpp b/mythtv/programs/mythfrontend/playbackbox.cpp
    index 3b6a381..877bd12 100644
    a b void PlaybackBox::customEvent(QEvent *event) 
    38553855            UpdateUILists();
    38563856            m_helper.ForceFreeSpaceUpdate();
    38573857        }
     3858        else if (message == "UPDATE_USAGE_UI")
     3859        {
     3860            UpdateUsageUI();
     3861        }
    38583862        else if (message == "RECONNECT_SUCCESS")
    38593863        {
    38603864            m_programInfoCache.ScheduleLoad();
  • mythtv/programs/mythfrontend/playbackboxhelper.cpp

    diff --git a/mythtv/programs/mythfrontend/playbackboxhelper.cpp b/mythtv/programs/mythfrontend/playbackboxhelper.cpp
    index aae73b9..3a4ede1 100644
    a b void PlaybackBoxHelper::UpdateFreeSpace(void) 
    536536            m_freeSpaceUsedMB  = (uint64_t) (fsInfos[i].usedSpaceKB  >> 10);
    537537        }
    538538    }
     539    MythEvent *e = new MythEvent("UPDATE_USAGE_UI");
     540    QCoreApplication::postEvent(m_listener, e);
    539541}
    540542
    541543uint64_t PlaybackBoxHelper::GetFreeSpaceTotalMB(void) const