| 1214 | } |
| 1215 | |
| 1216 | void KDiff3App::postRecalcWordWrap() |
| 1217 | { |
| 1218 | if(!m_bRecalcWordWrapPosted) |
| 1219 | { |
| 1220 | while(DiffTextWindow::maxThreads() > 0) {} //Clear wordwrap threads. |
| 1221 | m_bRecalcWordWrapPosted = true; |
| 1222 | m_firstD3LIdx = -1; |
| 1223 | Q_EMIT sigRecalcWordWrap(); |
| 1224 | } |
| 1225 | else |
| 1226 | { |
| 1227 | /* |
| 1228 | Clear exiting wordwrap threads and prevent recal signals from completing. |
| 1229 | This honors the intent of the old cancel call without the risk of aborting file I/O. |
| 1230 | */ |
| 1231 | QSignalBlocker blocker(m_pDiffTextWindow1), blocker2(m_pDiffTextWindow2), blocker3(m_pDiffTextWindow3), blocker4(m_pMergeResultWindow); |
| 1232 | while(DiffTextWindow::maxThreads() > 0) {} //Clear wordwrap threads. |
| 1233 | } |
| 1234 | } |
| 1235 | |
| 1236 | void KDiff3App::slotRecalcWordWrap() |
| 1237 | { |
nothing calls this directly
no outgoing calls
no test coverage detected