Commit 5d3feec3 authored by dickelbeck's avatar dickelbeck

say found item

parent 811b8936
...@@ -64,6 +64,7 @@ void RemoteCommand( const char* cmdline ) ...@@ -64,6 +64,7 @@ void RemoteCommand( const char* cmdline )
frame->DrawPanel->CursorOff( &dc ); frame->DrawPanel->CursorOff( &dc );
frame->GetScreen()->m_Curseur = module->GetPosition(); frame->GetScreen()->m_Curseur = module->GetPosition();
frame->DrawPanel->CursorOn( &dc ); frame->DrawPanel->CursorOn( &dc );
frame->SetCurItem( module );
} }
} }
...@@ -108,9 +109,15 @@ void RemoteCommand( const char* cmdline ) ...@@ -108,9 +109,15 @@ void RemoteCommand( const char* cmdline )
if( module == NULL ) if( module == NULL )
msg.Printf( _( "%s not found" ), modName.GetData() ); msg.Printf( _( "%s not found" ), modName.GetData() );
else if( pad == NULL ) else if( pad == NULL )
{
msg.Printf( _( "%s pin %s not found" ), modName.GetData(), pinName.GetData() ); msg.Printf( _( "%s pin %s not found" ), modName.GetData(), pinName.GetData() );
frame->SetCurItem( module );
}
else else
{
msg.Printf( _( "%s pin %s found" ), modName.GetData(), pinName.GetData() ); msg.Printf( _( "%s pin %s found" ), modName.GetData(), pinName.GetData() );
frame->SetCurItem( pad );
}
frame->Affiche_Message( msg ); frame->Affiche_Message( msg );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment