mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-21 22:16:38 +00:00
Fix -Wunused-lambda-capture warning errors on xocde93
This commit is contained in:
committed by
Baldur Karlsson
parent
dc920abf39
commit
e8c5cc7628
@@ -1620,18 +1620,18 @@ void TextureViewer::textureTab_Menu(const QPoint &pos)
|
||||
contextMenu.addAction(&closeOtherTabs);
|
||||
contextMenu.addAction(&closeRightTabs);
|
||||
|
||||
QObject::connect(&closeTab, &QAction::triggered, [this, textureTabs, tabIndex]() {
|
||||
QObject::connect(&closeTab, &QAction::triggered, [textureTabs, tabIndex]() {
|
||||
// remove the tab at this index
|
||||
textureTabs->removeTab(tabIndex);
|
||||
});
|
||||
|
||||
QObject::connect(&closeRightTabs, &QAction::triggered, [this, textureTabs, tabIndex]() {
|
||||
QObject::connect(&closeRightTabs, &QAction::triggered, [textureTabs, tabIndex]() {
|
||||
// remove all tabs with a greater index
|
||||
while(textureTabs->count() > tabIndex + 1)
|
||||
textureTabs->removeTab(tabIndex + 1);
|
||||
});
|
||||
|
||||
QObject::connect(&closeOtherTabs, &QAction::triggered, [this, textureTabs, tabIndex]() {
|
||||
QObject::connect(&closeOtherTabs, &QAction::triggered, [textureTabs, tabIndex]() {
|
||||
// remove all tabs with a greater index
|
||||
while(textureTabs->count() > tabIndex + 1)
|
||||
textureTabs->removeTab(tabIndex + 1);
|
||||
|
||||
Reference in New Issue
Block a user