Skip to content

Commit

Permalink
Permit loading MLT XML that uses GPU and CPU filters.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Nov 15, 2014
1 parent 2f90bf6 commit e8acdfe
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,24 +610,6 @@ bool MainWindow::isCompatibleWithGpuMode(const QString &url)
QApplication::closeAllWindows();
}
return false;
} else if (gpuChecker.hasEffects() && !gpuChecker.needsGPU() && Settings.playerGPU()) {
QMessageBox dialog(QMessageBox::Question,
qApp->applicationName(),
tr("The file you opened uses effects that are incompatible with GPU processing.\n"
"Do you want to disable GPU processing and restart?"),
QMessageBox::No |
QMessageBox::Yes,
this);
dialog.setWindowModality(QmlApplication::dialogModality());
dialog.setDefaultButton(QMessageBox::Yes);
dialog.setEscapeButton(QMessageBox::No);
int r = dialog.exec();
if (r == QMessageBox::Yes) {
Settings.setPlayerGPU(false);
m_exitCode = EXIT_RESTART;
QApplication::closeAllWindows();
}
return false;
}
}
}
Expand Down

0 comments on commit e8acdfe

Please sign in to comment.