Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
.
[graphlib.git] / DrawingWindow.h
index 0a0863f..10f0aa8 100644 (file)
@@ -138,15 +138,13 @@ void DrawingWindow::setDirtyRect(int x1, int y1, int x2, int y2)
 inline
 void DrawingWindow::DrawingThread::enableTerminate()
 {
-    if (currentThread() == this)
-        setTerminationEnabled(true);
+    setTerminationEnabled(true);
 }
 
 inline
 void DrawingWindow::DrawingThread::disableTerminate()
 {
-    if (currentThread() == this)
-        setTerminationEnabled(false);
+    setTerminationEnabled(false);
 }
 
 #endif // !DRAWING_WINDOW_H