Limit import files
This commit is contained in:
@@ -506,8 +506,18 @@ void ProjectExplorer::ReplaceSelectedFootage()
|
||||
{
|
||||
Footage *footage = static_cast<Footage *>(context_menu_items_.first());
|
||||
|
||||
QString file = QFileDialog::getOpenFileName(this, tr("Replace Footage"));
|
||||
QString file = QFileDialog::getOpenFileName(
|
||||
this, tr("Replace Footage"), QString(),
|
||||
Core::FootageFileDialogFilter());
|
||||
if (!file.isEmpty()) {
|
||||
if (!Core::IsFootageExtensionAllowed(file)) {
|
||||
QMessageBox::warning(
|
||||
this, tr("Unsupported media"),
|
||||
tr("This file type is not allowed by the current media type "
|
||||
"filter."));
|
||||
return;
|
||||
}
|
||||
|
||||
auto p = new MultiUndoCommand();
|
||||
|
||||
// Change filename parameter
|
||||
|
||||
Reference in New Issue
Block a user