Don't delete locked tabs, allow them to be deleted by the toolmanager

This commit is contained in:
baldurk
2016-11-24 17:27:28 +01:00
parent 7cc066abac
commit 7efc1bc455
-6
View File
@@ -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);