mirror of
https://github.com/leozide/leocad
synced 2024-12-27 21:58:37 +01:00
Show error message if save option used without a file name.
This commit is contained in:
parent
12089cca33
commit
801aab7cce
1 changed files with 12 additions and 1 deletions
|
@ -752,7 +752,18 @@ bool lcApplication::Initialize(QList<QPair<QString, bool>>& LibraryPaths, bool&
|
|||
lcLoadDefaultKeyboardShortcuts();
|
||||
lcLoadDefaultMouseShortcuts();
|
||||
|
||||
ShowWindow = !SaveImage && !SaveWavefront && !Save3DS && !SaveCOLLADA && !SaveHTML;
|
||||
if (SaveImage || SaveWavefront || Save3DS || SaveCOLLADA || SaveHTML)
|
||||
{
|
||||
ShowWindow = false;
|
||||
|
||||
if (ProjectName.isEmpty())
|
||||
{
|
||||
printf("No file name specified.\n");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
ShowWindow = true;
|
||||
|
||||
if (!LoadPartsLibrary(LibraryPaths, OnlyUseLibraryPaths, ShowWindow))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue