summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Baptiste Mardelle <jb@kdenlive.org>2016-09-11 20:15:19 (GMT)
committerJean-Baptiste Mardelle <jb@kdenlive.org>2016-09-11 20:15:19 (GMT)
commit6a6ad3742f3e28d82162f83ffdc1be94fda63f1e (patch)
tree69f9189bdca05d1a9414658e9a43f786a7aca905
parentbc2aa26625af36b9062105cac19443fa450c17f5 (diff)
Fix Recent regression - groups lost on project opening
Fix group width 1 frame too short BUG: 368342
-rw-r--r--src/mainwindow.cpp2
-rw-r--r--src/timeline/abstractgroupitem.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index fa82459..5bf4cbe 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1916,7 +1916,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());
}
diff --git a/src/timeline/abstractgroupitem.cpp b/src/timeline/abstractgroupitem.cpp
index 7234c5f..7817f12 100644
--- a/src/timeline/abstractgroupitem.cpp
+++ b/src/timeline/abstractgroupitem.cpp
@@ -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)