Fix crash when stopping server

This commit is contained in:
Adam Honse 2020-05-09 15:44:07 -05:00
parent 1b3f8f9eb4
commit 87854d5781
2 changed files with 3 additions and 2 deletions

View file

@ -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) :

View file

@ -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: