mirror of
https://github.com/leozide/leocad
synced 2025-01-30 20:34:56 +01:00
Added message when failed to write library files.
This commit is contained in:
parent
40efba8379
commit
6627b1880b
1 changed files with 3 additions and 0 deletions
|
@ -207,7 +207,10 @@ bool CLibraryDlg::ImportPieces(const ObjArray<String>& FileList)
|
|||
}
|
||||
|
||||
if ((!DiskIdx.Open(file1, "wb")) || (!DiskBin.Open(file2, "wb")))
|
||||
{
|
||||
AfxMessageBox("Failed to open file for writing.", MB_ICONERROR | MB_OK);
|
||||
return false;
|
||||
}
|
||||
|
||||
strcpy(file1, Library->GetLibraryPath());
|
||||
strcat(file1, "pieces-b.old");
|
||||
|
|
Loading…
Add table
Reference in a new issue