diff --git a/qt/OpenRGBServerInfoPage.cpp b/qt/OpenRGBServerInfoPage.cpp index 4cc2c1a4..9dcf138e 100644 --- a/qt/OpenRGBServerInfoPage.cpp +++ b/qt/OpenRGBServerInfoPage.cpp @@ -6,7 +6,7 @@ static void UpdateInfoCallback(void * this_ptr) { OpenRGBServerInfoPage * this_obj = (OpenRGBServerInfoPage *)this_ptr; - this_obj->UpdateInfo(); + QMetaObject::invokeMethod(this_obj, "UpdateInfo", Qt::QueuedConnection); } OpenRGBServerInfoPage::OpenRGBServerInfoPage(NetworkServer * server, QWidget *parent) : diff --git a/qt/OpenRGBServerInfoPage.h b/qt/OpenRGBServerInfoPage.h index 8c72b911..12136f6a 100644 --- a/qt/OpenRGBServerInfoPage.h +++ b/qt/OpenRGBServerInfoPage.h @@ -17,11 +17,12 @@ class Ui::OpenRGBServerInfoPage : public QFrame public: explicit OpenRGBServerInfoPage(NetworkServer * server, QWidget *parent = nullptr); ~OpenRGBServerInfoPage(); + +public slots: void UpdateInfo(); private slots: void on_ServerStartButton_clicked(); - void on_ServerStopButton_clicked(); private: