Changeset View
Changeset View
Standalone View
Standalone View
krusader/Archive/abstractthreadedjob.cpp
Show First 20 Lines • Show All 306 Lines • ▼ Show 20 Line(s) | 298 | { | |||
---|---|---|---|---|---|
307 | if (_tempFile) { | 307 | if (_tempFile) { | ||
308 | delete _tempFile; | 308 | delete _tempFile; | ||
309 | _tempFile = 0; | 309 | _tempFile = 0; | ||
310 | } | 310 | } | ||
311 | } | 311 | } | ||
312 | 312 | | |||
313 | void AbstractJobThread::run() | 313 | void AbstractJobThread::run() | ||
314 | { | 314 | { | ||
315 | QTimer::singleShot(0, this, SLOT(slotStart())); | 315 | QTimer::singleShot(0, this, &AbstractJobThread::slotStart); | ||
316 | 316 | | |||
317 | QPointer<QEventLoop> threadLoop = new QEventLoop(this); | 317 | QPointer<QEventLoop> threadLoop = new QEventLoop(this); | ||
318 | _loop = threadLoop; | 318 | _loop = threadLoop; | ||
319 | threadLoop->exec(); | 319 | threadLoop->exec(); | ||
320 | 320 | | |||
321 | _loop = 0; | 321 | _loop = 0; | ||
322 | delete threadLoop; | 322 | delete threadLoop; | ||
323 | } | 323 | } | ||
▲ Show 20 Lines • Show All 341 Lines • Show Last 20 Lines |