From b2b82d4ea095a6e469a59b842f75ba586284360d Mon Sep 17 00:00:00 2001 From: LRN1986 Date: Sat, 24 Apr 2010 10:17:35 +0000 Subject: [PATCH] ExtImport: Moved PluginList initialization before RuleTable initialization --- src/prefs/ExtImportPrefs.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/prefs/ExtImportPrefs.cpp b/src/prefs/ExtImportPrefs.cpp index c780459a8..554b6cd70 100644 --- a/src/prefs/ExtImportPrefs.cpp +++ b/src/prefs/ExtImportPrefs.cpp @@ -129,6 +129,11 @@ void ExtImportPrefs::PopulateOrExchange(ShuttleGui & S) if (fillRuleTable) { + PluginList->SetSingleStyle (wxLC_REPORT, true); + PluginList->SetSingleStyle (wxLC_SINGLE_SEL, true); + PluginList->InsertColumn (0, _("Importer order")); + PluginList->SetDropTarget (dragtarget2); + ExtImportItems *items = wxGetApp().mImporter->GetImportItems(); for (unsigned int i = 0; i < items->Count(); i++) AddItemToTable (i, &(*items)[i]); @@ -137,11 +142,6 @@ void ExtImportPrefs::PopulateOrExchange(ShuttleGui & S) RuleTable->SelectRow(0); RuleTable->SetGridCursor(0,0); } - - PluginList->SetSingleStyle (wxLC_REPORT, true); - PluginList->SetSingleStyle (wxLC_SINGLE_SEL, true); - PluginList->InsertColumn (0, _("Importer order")); - PluginList->SetDropTarget (dragtarget2); } } S.EndHorizontalLay();