Fixes to speed alarm and poi alerts. Added flicker effect. Some new fields to text...
[jspeed] / src / unitselector.cpp
index 61a0fb8..742a705 100644 (file)
@@ -46,7 +46,7 @@ UnitSelector::UnitSelector(QWidget* parent): QDialog(parent)
     layout->addWidget(selector_, Qt::AlignLeft);
 
     ButtonBox* buttons = new ButtonBox;
-    buttons->addButton(tr("Save"), this, SLOT(saveUnit()));
+    connect(buttons->addButton(tr("Save"), QDialogButtonBox::AcceptRole), SIGNAL(clicked(bool)), this, SLOT(saveUnit()));
 
     layout->addWidget(buttons);