core: switch to single-project implementation
This has never worked right, it's caused a number of complexities within the code, and I think there are better ways to do this.
This commit is contained in:
@@ -431,7 +431,7 @@ void MainWindow::SelectFootage(const QVector<Footage *> &e)
|
||||
void MainWindow::closeEvent(QCloseEvent *e)
|
||||
{
|
||||
// Try to close all projects (this will return false if the user chooses not to close)
|
||||
if (!Core::instance()->CloseAllProjects(false)) {
|
||||
if (!Core::instance()->CloseProject(false)) {
|
||||
e->ignore();
|
||||
return;
|
||||
}
|
||||
@@ -555,10 +555,7 @@ void MainWindow::TimelineCloseRequested()
|
||||
|
||||
void MainWindow::ProjectCloseRequested()
|
||||
{
|
||||
ProjectPanel* panel = static_cast<ProjectPanel*>(sender());
|
||||
Project* p = panel->project();
|
||||
|
||||
Core::instance()->CloseProject(p, true);
|
||||
Core::instance()->CloseProject(true);
|
||||
}
|
||||
|
||||
void MainWindow::ViewerCloseRequested()
|
||||
|
||||
Reference in New Issue
Block a user