src/file.cpp

changeset 518
623c01862eb8
parent 513
29eb671b34f6
child 519
63135a8abd41
equal deleted inserted replaced
517:2b5adb45aaa5 518:623c01862eb8
337 // which called the file loader. It will keep processing the event loop 337 // which called the file loader. It will keep processing the event loop
338 // until we're ready (see loadFileContents), thus the event loop will 338 // until we're ready (see loadFileContents), thus the event loop will
339 // eventually catch the invokation we throw here and send us back. Though 339 // eventually catch the invokation we throw here and send us back. Though
340 // it's not technically recursion anymore, more like a for loop. :P 340 // it's not technically recursion anymore, more like a for loop. :P
341 if (concurrent()) 341 if (concurrent())
342 QMetaObject::invokeMethod (this, "work", Qt::QueuedConnection, Q_ARG (int, i + 1)); 342 QMetaObject::invokeMethod (this, "work", Qt::QueuedConnection, Q_ARG (int, i));
343 else 343 else
344 work (i + 1); 344 work (i + 1);
345 } 345 }
346 } 346 }
347 347

mercurial