From 100913a696c23dd9b6fca1519e2df4ab1ca92456 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 4 Jan 2015 11:50:45 +0100 Subject: [PATCH] Cvpcb: better fix of Bug #1402306 --- cvpcb/cvframe.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/cvpcb/cvframe.cpp b/cvpcb/cvframe.cpp index 52ea015f58..3774109041 100644 --- a/cvpcb/cvframe.cpp +++ b/cvpcb/cvframe.cpp @@ -442,17 +442,6 @@ bool CVPCB_MAINFRAME::OpenProjectFiles( const std::vector& aFileSet, i return false; m_NetlistFileName = aFileSet[0]; - ReadNetListAndLinkFiles(); - - UpdateTitle(); - - // Resize the components list box. This is needed in case the - // contents have shrunk compared to the previous netlist. - m_compListBox->UpdateWidth(); - - // OSX need it since some objects are "rebuild" just make aware AUI - // Fixes #1258081 - m_auimgr.Update(); if( Kiface().IsSingle() ) { @@ -470,6 +459,18 @@ bool CVPCB_MAINFRAME::OpenProjectFiles( const std::vector& aFileSet, i Prj().SetProjectFullName( pro.GetFullPath() ); } + ReadNetListAndLinkFiles(); + + UpdateTitle(); + + // Resize the components list box. This is needed in case the + // contents have shrunk compared to the previous netlist. + m_compListBox->UpdateWidth(); + + // OSX need it since some objects are "rebuild" just make aware AUI + // Fixes #1258081 + m_auimgr.Update(); + return true; }