mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Fixed extension check.
This commit is contained in:
parent
2f0cf40af4
commit
a90cd13697
1 changed files with 2 additions and 2 deletions
|
@ -118,13 +118,13 @@ QString Project::GetNewModelName(QWidget* ParentWidget, const QString& DialogTit
|
|||
else
|
||||
{
|
||||
QString Extension = Name.right(4);
|
||||
if (Extension.compare(".dat", Qt::CaseInsensitive) == 0 || Extension.compare(".ldr", Qt::CaseInsensitive) == 0)
|
||||
if (Extension.compare(".dat", Qt::CaseInsensitive) == 0 || Extension.compare(".ldr", Qt::CaseInsensitive) == 0 || Extension.compare(".mpd", Qt::CaseInsensitive) == 0)
|
||||
ExtensionValid = true;
|
||||
}
|
||||
|
||||
if (!ExtensionValid)
|
||||
{
|
||||
QMessageBox::information(ParentWidget, tr("Invalid Extension"), tr("The model name must end with either '.ldr', '.dat' or '.mpd'."));
|
||||
QMessageBox::information(ParentWidget, tr("Invalid Extension"), tr("The model name must end with '.ldr', '.dat' or '.mpd'."));
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue