fixed a signal handling bug in QSE::App
This commit is contained in:
		| @ -422,7 +422,7 @@ int App::set_signal_subscription_no_mutex (int sig, SignalState reqstate, bool i | ||||
| 		App* xapp_xprev = QSE_NULL; | ||||
|  | ||||
| 		g_app_sig[sig] = this; | ||||
| 		sl._state = SIGNAL_ACCEPTED; | ||||
| 		sl._state = reqstate; | ||||
| 		sl._next = xapp; | ||||
| 		if (xapp)  | ||||
| 		{ | ||||
| @ -449,7 +449,7 @@ int App::set_signal_subscription_no_mutex (int sig, SignalState reqstate, bool i | ||||
| 	} | ||||
| 	else  | ||||
| 	{ | ||||
| 		// accpeted/ignored -> ignored/accepted | ||||
| 		// accpeted->discarded or discarded->accepted | ||||
| 		QSE_ASSERT (g_app_sig[sig] != QSE_NULL); | ||||
| 		sl._state = reqstate; | ||||
| 	} | ||||
|  | ||||
		Reference in New Issue
	
	Block a user