Move addAction call above left-align loop

Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
This commit is contained in:
ADudeCalledLeo 2022-11-09 21:56:46 +02:00
parent 9be48f1dc4
commit dbe0553b4a
No known key found for this signature in database
GPG Key ID: 2E08DA5D6AF36F3B

View File

@ -784,6 +784,8 @@ public:
instanceToolBar->addAction(actionCopyInstance);
instanceToolBar->addAction(actionDeleteInstance);
instanceToolBar->addAction(actionCreateInstanceShortcut); // TODO find better position for this
QLayout * lay = instanceToolBar->layout();
for(int i = 0; i < lay->count(); i++)
{
@ -794,8 +796,6 @@ public:
}
}
instanceToolBar->addAction(actionCreateInstanceShortcut); // TODO find better position for this
all_toolbars.append(&instanceToolBar);
MainWindow->addToolBar(Qt::RightToolBarArea, instanceToolBar);
}