# HG changeset patch # User Hasan Yavuz ÖZDERYA # Date 2017-08-20 12:56:21 # Node ID e8b7f01c66b862735e14f26980d58ff2d45ad022 # Parent ac878c0193ff5f02e369d8a19ac1c38d9681eb66 fix #7, command type not loaded correctly from settings diff --git a/src/commandwidget.cpp b/src/commandwidget.cpp --- a/src/commandwidget.cpp +++ b/src/commandwidget.cpp @@ -1,5 +1,5 @@ /* - Copyright © 2016 Hasan Yavuz Özderya + Copyright © 2017 Hasan Yavuz Özderya This file is part of serialplot. @@ -103,7 +103,14 @@ bool CommandWidget::isASCIIMode() void CommandWidget::setASCIIMode(bool enabled) { - ui->pbASCII->setChecked(enabled); + if (enabled) + { + ui->pbASCII->setChecked(true); + } + else + { + ui->pbHEX->setChecked(true); + } } void CommandWidget::setName(QString name)