Put library name in confirmation dialog when reverting library.

This commit is contained in:
Jeff Young 2018-11-20 20:11:05 +00:00
parent 630baa3724
commit 9145d6a0a3
1 changed files with 2 additions and 1 deletions

View File

@ -569,7 +569,8 @@ void LIB_EDIT_FRAME::OnRevert( wxCommandEvent& aEvent )
const wxString& libName = libId.GetLibNickname();
const wxString& partName = libId.GetLibItemName(); // Empty if this is the library itself that is selected
wxString msg = wxString::Format( _( "Revert \"%s\" to last version saved?" ), partName );
wxString msg = wxString::Format( _( "Revert \"%s\" to last version saved?" ),
partName.IsEmpty() ? libName : partName );
if( !ConfirmRevertDialog( this, msg ) )
return;