# HG changeset patch # User Hasan Yavuz Ă–ZDERYA # Date 2015-10-10 16:17:11 # Node ID 1c029d412caa2e8ba7458b92b5bea6ad29fa44b2 # Parent 571af19990edcbeb9b371e22b805bb23288eec3c add an empty slot by default diff --git a/commandpanel.cpp b/commandpanel.cpp --- a/commandpanel.cpp +++ b/commandpanel.cpp @@ -33,6 +33,8 @@ CommandPanel::CommandPanel(QSerialPort* ui->scrollAreaWidgetContents->setLayout(new QVBoxLayout); connect(ui->pbNew, &QPushButton::clicked, this, &CommandPanel::newCommand); + + newCommand(); // add an empty slot by default } CommandPanel::~CommandPanel()