Skip to content

Commit 9d276f8

Browse files
committed
rtknavi: enable and disable the start button
rather than just changing its visibility as the output stream and log stream change methods test if the start button is enabled and were not operating when started. Same issue on the windows and Qt apps.
1 parent 8e5903f commit 9d276f8

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

app/qtapp/rtknavi_qt/navimain.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,7 @@ void MainWindow::serverStart()
12531253
updatePlot();
12541254

12551255
ui->btnStart->setVisible(false);
1256+
ui->btnStart->setEnabled(false);
12561257
ui->btnOptions->setEnabled(false);
12571258
ui->btnExit->setEnabled(false);
12581259
ui->btnInputStream->setEnabled(false);
@@ -1293,6 +1294,7 @@ void MainWindow::serverStop()
12931294
for (i = 0; i < 3; i++) delete[] cmds[i];
12941295

12951296
ui->btnStart->setVisible(true);
1297+
ui->btnStart->setEnabled(true);
12961298
ui->btnOptions->setEnabled(true);
12971299
ui->btnExit->setEnabled(true);
12981300
ui->btnInputStream->setEnabled(true);

app/winapp/rtknavi/navimain.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,6 +1302,7 @@ void __fastcall TMainForm::SvrStart(void)
13021302
UpdatePos();
13031303
UpdatePlot();
13041304
BtnStart ->Visible=false;
1305+
BtnStart ->Enabled=false;
13051306
BtnOpt ->Enabled=false;
13061307
BtnExit ->Enabled=false;
13071308
BtnInputStr ->Enabled=false;
@@ -1334,6 +1335,7 @@ void __fastcall TMainForm::SvrStop(void)
13341335
rtksvrstop(&rtksvr,(const char **)cmds);
13351336

13361337
BtnStart ->Visible=true;
1338+
BtnStart ->Enabled=true;
13371339
BtnOpt ->Enabled=true;
13381340
BtnExit ->Enabled=true;
13391341
BtnInputStr ->Enabled=true;

0 commit comments

Comments
 (0)