summaryrefslogtreecommitdiff
path: root/LiteEditor/workspacesettingsdlg.cpp
diff options
context:
space:
mode:
authorAlessio Treglia <quadrispro@ubuntu.com>2010-03-26 10:58:27 +0100
committerAlessio Treglia <quadrispro@ubuntu.com>2010-03-26 10:58:27 +0100
commitc298bfa6913b48e5e16f7d3fed3839e203fadba1 (patch)
treea3514c157bd90fd687f5b9290e691263aef88dff /LiteEditor/workspacesettingsdlg.cpp
parentab5bf5023dc0f25091831e11fd68bcf33bbeb4c3 (diff)
Imported Upstream version 2.3.0.3833~dfsg
Diffstat (limited to 'LiteEditor/workspacesettingsdlg.cpp')
-rw-r--r--LiteEditor/workspacesettingsdlg.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/LiteEditor/workspacesettingsdlg.cpp b/LiteEditor/workspacesettingsdlg.cpp
index 7f1e400f..e9c79b6d 100644
--- a/LiteEditor/workspacesettingsdlg.cpp
+++ b/LiteEditor/workspacesettingsdlg.cpp
@@ -23,6 +23,8 @@ WorkspaceSettingsDlg::WorkspaceSettingsDlg( wxWindow* parent, LocalWorkspace *lo
m_choiceEnvSets->Clear();
std::map<wxString, wxString>::iterator iter = envSets.begin();
+ int useActiveSetIndex = m_choiceEnvSets->Append(wxT("<Use Active Set>"));
+
for (; iter != envSets.end(); iter++) {
m_choiceEnvSets->Append(iter->first);
}
@@ -31,12 +33,8 @@ WorkspaceSettingsDlg::WorkspaceSettingsDlg( wxWindow* parent, LocalWorkspace *lo
wxString activeEnvSet;
int where = m_choiceEnvSets->FindString(localWorkspace->GetActiveEnvironmentSet());
if (where == wxNOT_FOUND) {
- // try to select the default active set
- where = m_choiceEnvSets->FindString(activePage);
- if (where != wxNOT_FOUND) {
- m_choiceEnvSets->SetSelection(where);
- activeEnvSet = activePage;
- }
+ activeEnvSet = activePage;
+ m_choiceEnvSets->SetSelection(useActiveSetIndex);
} else {
activeEnvSet = localWorkspace->GetActiveEnvironmentSet();