summaryrefslogtreecommitdiffstats
path: root/Project/MainFrame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/MainFrame.cpp')
-rw-r--r--Project/MainFrame.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Project/MainFrame.cpp b/Project/MainFrame.cpp
index cfb24cf..3b7e230 100644
--- a/Project/MainFrame.cpp
+++ b/Project/MainFrame.cpp
@@ -245,7 +245,9 @@ void MainFrame::OnAddElementsClick(wxCommandEvent& event)
break;
case ID_ADDMENU_GENERATOR:
{
- SyncGenerator* newGenerator = new SyncGenerator();
+ SyncGenerator* newGenerator = new SyncGenerator(
+ wxString::Format(_("Bus %d"), workspace->GetElementNumber(ID_SYNCGENERATOR)));
+ workspace->IncrementElementNumber(ID_SYNCGENERATOR);
elementList.push_back(newGenerator);
statusBarText = _("Insert Generator: Click on a buses, ESC to cancel.");
newElement = true;