diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index f3b8678c849a4790799e4437ea88db2cd87eda75..3eb6b8d8b9f20302643b5bab1acd919ef203c7b8 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -1145,7 +1145,6 @@ bool MainWindow::loadStyle(QGC_MAINWINDOW_STYLE style, QString cssFile) // And trigger any changes to other UI elements that are watching for // theme changes. emit styleChanged(style); - emit styleChanged(); // Finally restore the cursor before returning. qApp->restoreOverrideCursor(); diff --git a/src/ui/MainWindow.h b/src/ui/MainWindow.h index 9390d6fd2c9c78109fc0da2b39c6b1d9c0222e54..9d5cd528f4ff39864fa43c6362e9c4af74f2d9c6 100644 --- a/src/ui/MainWindow.h +++ b/src/ui/MainWindow.h @@ -300,7 +300,6 @@ protected slots: signals: void styleChanged(MainWindow::QGC_MAINWINDOW_STYLE newTheme); - void styleChanged(); void initStatusChanged(const QString& message, int alignment, const QColor &color); #ifdef MOUSE_ENABLED_LINUX /** @brief Forward X11Event to catch 3DMouse inputs */ diff --git a/src/ui/linechart/LinechartWidget.cc b/src/ui/linechart/LinechartWidget.cc index 39f68c8f2e1e5fec2b942bbef55d895b3257805f..b6356be1c398ae643873e218a8b2e0135c53d05e 100644 --- a/src/ui/linechart/LinechartWidget.cc +++ b/src/ui/linechart/LinechartWidget.cc @@ -138,7 +138,7 @@ LinechartWidget::LinechartWidget(int systemid, QWidget *parent) : QWidget(parent createLayout(); // And make sure we're listening for future style changes - connect(MainWindow::instance(), SIGNAL(styleChanged()), this, SLOT(recolor())); + connect(MainWindow::instance(), SIGNAL(styleChanged(MainWindow::QGC_MAINWINDOW_STYLE)), this, SLOT(recolor())); updateTimer->setInterval(updateInterval); connect(updateTimer, SIGNAL(timeout()), this, SLOT(refresh()));