diff --git a/README.md b/README.md index 43ae2e3..8b5c4a2 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,7 @@ git clone --recurse-submodules https://github.com/UmbrellaLeaf5/locus_no_pilotus ## Used libs and packages * [CMake](https://cmake.org/): main project build system * [Qt](https://www.qt.io/): main project library for full-working program -* [QCustomPlot](https://www.qcustomplot.com/): library for drawing all objects on same place with autoscaling ([submodule](https://github.com/legerch/QCustomPlot-library "reference for submodule with lib in GitHub")) +* [QCustomPlot](https://www.qcustomplot.com/): library for drawing all objects on same place with autoscaling ([submodule](https://github.com/UmbrellaLeaf5/qcustomplot "reference for submodule with lib in GitHub")) * [IceCream-Cpp](https://github.com/renatoGarcia/icecream-cpp): library for simple code debugging (we really recommend to use it in C++ projects) * [Doxygen](https://www.doxygen.nl/): full documentation generation * [Doxygen Awesome](https://github.com/jothepro/doxygen-awesome-css): convenient CSS theme for Doxygen HTML documentation (it is really awesome) diff --git a/main/mainwindow.cpp b/main/mainwindow.cpp index 45607cd..ff479fc 100644 --- a/main/mainwindow.cpp +++ b/main/mainwindow.cpp @@ -41,9 +41,11 @@ MainWindow::MainWindow(QWidget* parent) int_validator->setRange(1, 9); ui->robotsAmountLineEdit->setValidator(int_validator); - connect( - ui->plotSettingsDockWidget, &QDockWidget::visibilityChanged, this, - [this](bool visible) { ui->flyRobotPushButton->setEnabled(!visible); }); + connect(ui->plotSettingsDockWidget, &QDockWidget::visibilityChanged, this, + [this](bool visible) { + if (is_drown_trajectory_) + ui->flyRobotPushButton->setEnabled(!visible); + }); } MainWindow::~MainWindow() { delete ui; }