Symbol editor: fix unnecessary "Save As..." prompt.
Fixes https://gitlab.com/kicad/code/kicad/-/issues/4818
This commit is contained in:
parent
485518a5e2
commit
41dd31babf
|
@ -895,8 +895,8 @@ bool LIB_EDIT_FRAME::saveAllLibraries( bool aRequireConfirmation )
|
||||||
// If saving under existing name fails then do a Save As..., and if that
|
// If saving under existing name fails then do a Save As..., and if that
|
||||||
// fails then cancel close action.
|
// fails then cancel close action.
|
||||||
if( !m_libMgr->IsLibraryReadOnly( libNickname )
|
if( !m_libMgr->IsLibraryReadOnly( libNickname )
|
||||||
&& !saveLibrary( libNickname, false ) )
|
&& saveLibrary( libNickname, false ) )
|
||||||
return false;
|
continue;
|
||||||
|
|
||||||
if( !saveLibrary( libNickname, true ) )
|
if( !saveLibrary( libNickname, true ) )
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue