diff --git a/src/drivers/Qt/RamWatch.cpp b/src/drivers/Qt/RamWatch.cpp index 509bb10b..19bf2594 100644 --- a/src/drivers/Qt/RamWatch.cpp +++ b/src/drivers/Qt/RamWatch.cpp @@ -841,7 +841,7 @@ void RamWatchDialog_t::openWatchEditWindow( ramWatch_t *rw, int mode) okButton->setDefault(true); connect( okButton, SIGNAL(clicked(void)), &dialog, SLOT(accept(void)) ); - connect( cancelButton, SIGNAL(clicked(void)), &dialog, SLOT(reject(void)) ); + connect( cancelButton, SIGNAL(clicked(void)), &dialog, SLOT(reject(void)) ); if ( rw != NULL ) { @@ -871,8 +871,8 @@ void RamWatchDialog_t::openWatchEditWindow( ramWatch_t *rw, int mode) } else { - signedTypeBtn->setChecked( rw->type == 's' ); - unsignedTypeBtn->setChecked( rw->type != 's' ); + signedTypeBtn->setChecked( rw->type == 's' ); + unsignedTypeBtn->setChecked( rw->type != 's' ); dataSize1Btn->setChecked( rw->size == 1 ); dataSize2Btn->setChecked( rw->size == 2 ); dataSize4Btn->setChecked( rw->size == 4 ); @@ -880,8 +880,8 @@ void RamWatchDialog_t::openWatchEditWindow( ramWatch_t *rw, int mode) } else { - signedTypeBtn->setChecked( true ); - unsignedTypeBtn->setChecked( false ); + signedTypeBtn->setChecked( true ); + unsignedTypeBtn->setChecked( false ); dataSize1Btn->setChecked( true ); dataSize2Btn->setChecked( false ); dataSize4Btn->setChecked( false ); @@ -911,7 +911,7 @@ void RamWatchDialog_t::openWatchEditWindow( ramWatch_t *rw, int mode) if ( (rw == NULL) || mode ) { ramWatchList.add_entry( notesEntry->text().toStdString().c_str(), - addr, unsignedTypeBtn->isChecked(), size, isSep); + addr, unsignedTypeBtn->isChecked() ? 'u' : 's', size, isSep); } else {