This commit is contained in:
itsmattkc
2021-04-17 12:56:27 +10:00
3 changed files with 10 additions and 3 deletions
+2 -2
View File
@@ -22,9 +22,9 @@ assignees: ''
2.
3.
<details><summary><strong>Backtrace</strong></summary><pre><code>
<details><summary><strong>Crash Report</strong></summary><pre><code>
<!-- Paste backtrace here -->
<!-- You should have received a crash report from Olive to paste here. -->
</code></pre></details>
@@ -807,6 +807,12 @@ void TimelineWidget::ViewMouseReleased(TimelineViewMouseEvent *event)
void TimelineWidget::ViewMouseDoubleClicked(TimelineViewMouseEvent *event)
{
// kHand tool will return nullptr
if (!GetActiveTool()) {
// Only kHand should return a nullptr
Q_ASSERT(Core::instance()->tool() == olive::Tool::kHand);
return;
}
if (GetConnectedNode()) {
GetActiveTool()->MouseDoubleClick(event);
UpdateViewports();
+2 -1
View File
@@ -322,7 +322,8 @@ void ViewerWidget::SetFullScreen(QScreen *screen)
}
if (windows_.contains(screen)) {
delete windows_.take(screen);
ViewerWindow* vw = windows_.take(screen);
vw->deleteLater();
return;
}