Fix Recent regression - groups lost on project opening

Fix group width 1 frame too short
BUG: 368342
parent bed34436
......@@ -1866,7 +1866,7 @@ void MainWindow::connectDocument()
m_normalEditTool->setChecked(true);
connect(m_projectMonitor, SIGNAL(durationChanged(int)), this, SLOT(slotUpdateProjectDuration(int)));
pCore->monitorManager()->setDocument(project);
trackView->updateProfile(false);
trackView->updateProfile(1.0);
if (m_recMonitor) {
m_recMonitor->slotUpdateCaptureFolder(project->projectFolder().path() + QDir::separator());
}
......
......@@ -176,8 +176,8 @@ void AbstractGroupItem::paint(QPainter *p, const QStyleOptionGraphicsItem *optio
pen.setStyle(Qt::DashLine);
pen.setWidthF(0.0);
p->setPen(pen);
QRectF bd = childrenBoundingRect().adjusted(0, 0, -1, 0);
p->drawRoundedRect(bd, 3, 3);
QRectF bd = childrenBoundingRect().adjusted(0, 0, 0, 0);
p->drawRect(bd);
}
int AbstractGroupItem::trackForPos(int position)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment