mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-03 03:22:30 +02:00
Fix crash when attempting to analyze a FIFO after stopping playback
This commit is contained in:
parent
58333d6feb
commit
a557230dea
@ -165,6 +165,9 @@ void FIFOAnalyzer::UpdateDetails()
|
|||||||
m_detail_list->clear();
|
m_detail_list->clear();
|
||||||
m_object_data_offsets.clear();
|
m_object_data_offsets.clear();
|
||||||
|
|
||||||
|
if (!FifoPlayer::GetInstance().IsPlaying())
|
||||||
|
return;
|
||||||
|
|
||||||
auto items = m_tree_widget->selectedItems();
|
auto items = m_tree_widget->selectedItems();
|
||||||
|
|
||||||
if (items.isEmpty() || items[0]->data(0, OBJECT_ROLE).isNull())
|
if (items.isEmpty() || items[0]->data(0, OBJECT_ROLE).isNull())
|
||||||
@ -316,6 +319,9 @@ void FIFOAnalyzer::BeginSearch()
|
|||||||
{
|
{
|
||||||
QString search_str = m_search_edit->text();
|
QString search_str = m_search_edit->text();
|
||||||
|
|
||||||
|
if (!FifoPlayer::GetInstance().IsPlaying())
|
||||||
|
return;
|
||||||
|
|
||||||
auto items = m_tree_widget->selectedItems();
|
auto items = m_tree_widget->selectedItems();
|
||||||
|
|
||||||
if (items.isEmpty() || items[0]->data(0, FRAME_ROLE).isNull())
|
if (items.isEmpty() || items[0]->data(0, FRAME_ROLE).isNull())
|
||||||
@ -462,6 +468,9 @@ void FIFOAnalyzer::UpdateDescription()
|
|||||||
{
|
{
|
||||||
m_entry_detail_browser->clear();
|
m_entry_detail_browser->clear();
|
||||||
|
|
||||||
|
if (!FifoPlayer::GetInstance().IsPlaying())
|
||||||
|
return;
|
||||||
|
|
||||||
auto items = m_tree_widget->selectedItems();
|
auto items = m_tree_widget->selectedItems();
|
||||||
|
|
||||||
if (items.isEmpty())
|
if (items.isEmpty())
|
||||||
|
@ -245,6 +245,7 @@ void FIFOPlayerWindow::OnEmulationStopped()
|
|||||||
StopRecording();
|
StopRecording();
|
||||||
|
|
||||||
UpdateControls();
|
UpdateControls();
|
||||||
|
m_analyzer->Update();
|
||||||
}
|
}
|
||||||
|
|
||||||
void FIFOPlayerWindow::OnRecordingDone()
|
void FIFOPlayerWindow::OnRecordingDone()
|
||||||
|
Loading…
Reference in New Issue
Block a user