Fix crash when stopping server
This commit is contained in:
parent
1b3f8f9eb4
commit
87854d5781
2 changed files with 3 additions and 2 deletions
|
|
@ -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) :
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue