Put library name in confirmation dialog when reverting library.
This commit is contained in:
parent
630baa3724
commit
9145d6a0a3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue