added ability to open viewers on any viewer node or derivative

Fixes #1362

Also fixes some other bugs that impeded this from working.
This commit is contained in:
itsmattkc
2021-04-12 22:58:34 +10:00
parent 17f40cf91f
commit c03c197412
26 changed files with 173 additions and 85 deletions
+5 -3
View File
@@ -396,9 +396,6 @@ void Core::CreateNewSequence()
// Create new sequence
Sequence* new_sequence = CreateNewSequenceForProject(active_project);
// Set all defaults for the sequence
new_sequence->set_default_parameters();
SequenceDialog sd(new_sequence, SequenceDialog::kNew, main_window_);
// Make sure SequenceDialog doesn't make an undo command for editing the sequence, since we make an undo command for
@@ -1091,6 +1088,11 @@ void Core::OpenRecoveryProject(const QString &filename)
OpenProjectInternal(filename, true);
}
void Core::OpenNodeInViewer(ViewerOutput *viewer)
{
main_window_->OpenNodeInViewer(viewer);
}
void Core::CheckForAutoRecoveries()
{
QFile autorecovery_index(GetAutoRecoveryIndexFilename());