8 Commits

Author SHA1 Message Date
Lipu Fei
ed8127777c Make a single NetworkingUtil
CURA-6483
2019-04-30 09:43:50 +02:00
Lipu Fei
8c42ceb8e6 Use socket to validate IP addresses
CURA-6483
2019-04-30 07:40:18 +02:00
Lipu Fei
c8872cb4a1 Use a separate function to validate IP address
CURA-6483
2019-04-29 15:53:08 +02:00
Lipu Fei
f521fae152 Fix call_on_qt_thread decorator
CURA-6225

Do thread check in the wrapper function, not outside.
2019-02-15 15:11:11 +01:00
Ghostkeeper
f3cab17e20
Revert "Check if on main thread for call_on_qt_thread"
This reverts commit 21099e30cb666d65b53fbcd749793ce6f5fe6776.
It was causing a segfault when saving UFP files.
2019-02-15 13:45:23 +01:00
Lipu Fei
21099e30cb Check if on main thread for call_on_qt_thread
CURA-6225
2019-02-15 12:51:42 +01:00
Lipu Fei
0f5f059a7c Add missing __init__.py
CURA-5242
2018-04-17 11:06:30 +02:00
Lipu Fei
62521e93db Make sure that project writer runs on Qt thread
CURA-5229

 - Move @call_on_qt_thread to a separate module
 - Make sure that project writer runs on Qt thread because itself and the
   calls it makes can create new QObjects such as InstanceContainers, and
   this must happen on the Qt thread.
2018-04-16 15:32:12 +02:00