mirror of
https://github.com/Rosalie241/RMG.git
synced 2026-11-13 17:48:43 +01:00
RMG: fix crash when quitting RMG during a ROM browser refresh
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user