Merge pull request #670 from IBSYSLevi/fix/projectview_corner_Layout_crash

Fix crash when opening a project: invalid index in corner layout
This commit is contained in:
Laurent Trinques
2026-08-06 11:30:37 +02:00
committed by GitHub
+1 -1
View File
@@ -842,7 +842,7 @@ void ProjectView::initWidgets()
QHBoxLayout *TopRightCorner_Layout = new QHBoxLayout(); QHBoxLayout *TopRightCorner_Layout = new QHBoxLayout();
TopRightCorner_Layout->setContentsMargins(0,0,0,0); TopRightCorner_Layout->setContentsMargins(0,0,0,0);
// some place left to the 'next_right_view_button' button // some place left to the 'next_right_view_button' button
TopRightCorner_Layout->insertSpacing(1,10); TopRightCorner_Layout->addSpacing(10);
QHBoxLayout *TopLeftCorner_Layout = new QHBoxLayout(); QHBoxLayout *TopLeftCorner_Layout = new QHBoxLayout();
TopLeftCorner_Layout->setContentsMargins(0,0,0,0); TopLeftCorner_Layout->setContentsMargins(0,0,0,0);