mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Don't delete locked tabs, allow them to be deleted by the toolmanager
This commit is contained in:
@@ -1565,10 +1565,7 @@ void TextureViewer::textureTab_Closing(int index)
|
||||
qWarning() << "Expected only one removed tab, got " << ids.count();
|
||||
|
||||
for(ResourceId id : ids)
|
||||
{
|
||||
delete m_LockedTabs[id];
|
||||
m_LockedTabs.remove(id);
|
||||
}
|
||||
|
||||
textureTabs->setCurrentIndex(index - 1);
|
||||
textureTabs->widget(index - 1)->show();
|
||||
@@ -2535,9 +2532,6 @@ void TextureViewer::OnLogfileClosed()
|
||||
{
|
||||
Reset();
|
||||
|
||||
for(ResourceId id : m_LockedTabs.keys())
|
||||
delete m_LockedTabs[id];
|
||||
|
||||
m_LockedTabs.clear();
|
||||
|
||||
ui->saveTex->setEnabled(false);
|
||||
|
||||
Reference in New Issue
Block a user