mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Set locked tab proprety early so we can pick it up when it activates
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user