From a601462de0bffb8aaa75d886b9ff5a1fda33b13b Mon Sep 17 00:00:00 2001 From: baldurk Date: Wed, 12 Oct 2016 13:24:28 +0200 Subject: [PATCH] Set locked tab proprety early so we can pick it up when it activates --- qrenderdoc/Windows/TextureViewer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qrenderdoc/Windows/TextureViewer.cpp b/qrenderdoc/Windows/TextureViewer.cpp index 8c61fa48a..b9a568a7d 100644 --- a/qrenderdoc/Windows/TextureViewer.cpp +++ b/qrenderdoc/Windows/TextureViewer.cpp @@ -1671,6 +1671,7 @@ void TextureViewer::ViewTexture(ResourceId ID, bool focus) { QWidget *lockedContainer = new QWidget(this); lockedContainer->setWindowTitle(QString(tex->name)); + lockedContainer->setProperty("id", QVariant::fromValue(ID)); ToolWindowManagerArea *textureTabs = ui->dockarea->areaOf(ui->renderContainer); @@ -1692,8 +1693,6 @@ void TextureViewer::ViewTexture(ResourceId ID, bool focus) else qCritical() << "Couldn't get tab index of new tab to set icon"; - lockedContainer->setProperty("id", QVariant::fromValue(ID)); - // newPanel.DockHandler.TabPageContextMenuStrip = tabContextMenu; if(focus)