mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
Revert "disable socket notifier before re-enabling on thread change event"
This reverts commit 309fa458f0
.
This commit is contained in:
parent
127bd5d92e
commit
8a192838c2
1 changed files with 1 additions and 1 deletions
|
@ -221,9 +221,9 @@ bool QSocketNotifier::event(QEvent *e)
|
||||||
{
|
{
|
||||||
if (e->type() == QEvent::ThreadChange) {
|
if (e->type() == QEvent::ThreadChange) {
|
||||||
if (snenabled) {
|
if (snenabled) {
|
||||||
setEnabled(false);
|
|
||||||
QMetaObject::invokeMethod(this, "setEnabled", Qt::QueuedConnection,
|
QMetaObject::invokeMethod(this, "setEnabled", Qt::QueuedConnection,
|
||||||
Q_ARG(bool, snenabled));
|
Q_ARG(bool, snenabled));
|
||||||
|
setEnabled(false);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
} else if (e->type() == QEvent::SockAct) {
|
} else if (e->type() == QEvent::SockAct) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue