mirror of
https://github.com/CalcProgrammer1/OpenRGB.git
synced 2026-05-24 14:35:01 -04:00
Fix crash when stopping server
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user