--- qsampler/trunk/src/qsamplerOptionsForm.cpp 2010/07/04 12:50:51 2106 +++ qsampler/trunk/src/qsamplerOptionsForm.cpp 2010/07/10 09:47:33 2107 @@ -133,11 +133,11 @@ QObject::connect(m_ui.MaxStreamsSpinBox, SIGNAL(valueChanged(int)), SLOT(maxStreamsChanged(int))); - QObject::connect(m_ui.OkPushButton, - SIGNAL(clicked()), + QObject::connect(m_ui.DialogButtonBox, + SIGNAL(accepted()), SLOT(accept())); - QObject::connect(m_ui.CancelPushButton, - SIGNAL(clicked()), + QObject::connect(m_ui.DialogButtonBox, + SIGNAL(rejected()), SLOT(reject())); } @@ -397,7 +397,7 @@ m_ui.MessagesLimitLinesSpinBox->setEnabled( m_ui.MessagesLimitCheckBox->isChecked()); - m_ui.OkPushButton->setEnabled(bValid); + m_ui.DialogButtonBox->button(QDialogButtonBox::Ok)->setEnabled(bValid); }