Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 29112c4

Browse files
bug fix
1 parent 9eeb16d commit 29112c4

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

‎include/MotionWatchdog.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include <QObject>
4+
#include <QVector>
45

56
namespace PopMsgBox
67
{

‎include/PopMsgBox.h‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ namespace PopMsgBox
4545
PopMsgBox()
4646
{
4747
const auto popupWindowContainer = new PopupWindowContainer(10000);
48+
49+
//move popupWindowContainer to main Gui thread if it is not there
50+
if (thread() != QApplication::instance()->thread())
51+
{
52+
popupWindowContainer->moveToThread(QApplication::instance()->thread());
53+
}
54+
4855
m_eventLoop = new EventLoop(popupWindowContainer);
4956
connect(m_eventLoop, &EventLoop::destroyed, popupWindowContainer, &PopupWindowContainer::deleteLater, Qt::QueuedConnection);
5057

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /