From feba091594bc81a97edcaf3cb628441fd91d4433 Mon Sep 17 00:00:00 2001 From: Chris Pavlina Date: Mon, 27 Mar 2017 08:44:47 -0400 Subject: [PATCH] Highlight the first choice in rescue dialog Fixes: lp:1455970 * https://bugs.launchpad.net/kicad/+bug/1455970 --- eeschema/dialogs/dialog_rescue_each.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/eeschema/dialogs/dialog_rescue_each.cpp b/eeschema/dialogs/dialog_rescue_each.cpp index 2bd99b8079..537fea3551 100644 --- a/eeschema/dialogs/dialog_rescue_each.cpp +++ b/eeschema/dialogs/dialog_rescue_each.cpp @@ -135,6 +135,12 @@ void DIALOG_RESCUE_EACH::PopulateConflictList() m_ListOfConflicts->AppendItem( data ); } + + if( !m_Rescuer->m_all_candidates.empty() ) + { + // Select the first choice + m_ListOfConflicts->SelectRow( 0 ); + } }