From a06a0c1236339dbf06cf97cf1c685a63e4f0b070 Mon Sep 17 00:00:00 2001 From: PJM Date: Mon, 10 Aug 2020 19:01:04 -0700 Subject: [PATCH] Fix Pcbnew tree order in "Preferences" tree Eeschema and Pcbnew display the same dialog panels in a different order in the 'Preferences' tree. This code make Pcbnew match the order of Eeschema. Fixes issue: https://gitlab.com/kicad/code/kicad/-/issues/5147 --- pcbnew/pcbnew_config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcbnew/pcbnew_config.cpp b/pcbnew/pcbnew_config.cpp index bb6c9df5f4..c45b79aaf8 100644 --- a/pcbnew/pcbnew_config.cpp +++ b/pcbnew/pcbnew_config.cpp @@ -70,8 +70,8 @@ void PCB_EDIT_FRAME::InstallPreferences( PAGED_DIALOG* aParent, book->AddGroupEntry( _( "Pcbnew" ) ); book->AddSubPage( new PANEL_DISPLAY_OPTIONS( this, aParent ), _( "Display Options" ) ); - book->AddSubPage( new PANEL_PCBNEW_COLOR_SETTINGS( this, book ), _( "Colors" ) ); book->AddSubPage( new PANEL_EDIT_OPTIONS( this, aParent ), _( "Editing Options" ) ); + book->AddSubPage( new PANEL_PCBNEW_COLOR_SETTINGS( this, book ), _( "Colors" ) ); #if defined(KICAD_SCRIPTING) && defined(KICAD_SCRIPTING_ACTION_MENU) book->AddSubPage( new PANEL_PCBNEW_ACTION_PLUGINS( this, aParent ), _( "Action Plugins" ) ); #endif