RMG: fix crash when quitting RMG during a ROM browser refresh

This commit is contained in:
Rosalie Wanders committed 2025-03-05 16:40:54 +01:00
1 parent 5311d04957
commit 10bb0b9df2
1 file changed
+7
@@ -804,6 +804,13 @@ void RomBrowserWidget::on_listViewWidget_sectionResized(int logicalIndex, int ol
{
std::vector<int> columnSizes = CoreSettingsGetIntListValue(SettingsID::RomBrowser_ColumnSizes);
// this only happens when the ROM browser is
// refreshing and the user exits
if (columnSizes.empty())
{
return;
}
if (!this->listViewWidget->horizontalHeader()->stretchLastSection())
{
columnSizes.at(logicalIndex) = newWidth;