[bt-devel] Bugfix in BT 1.6.4 for KDE3

Martin Gruner mg.pub at gmx.net
Sun Aug 26 10:22:51 MST 2007


Hi again.

I think I found a solution. I replaced this nasty loop:

> -               while (!finishedDownload) {
> -                       KApplication::kApplication()->processEvents(1);
> -                       //   qWarning("FTP: Copy not yet finished");
> -                       if (term) {
> -                               if (job) {
> -                                       job->kill(false);
> -                               }
> -                       }

with:

KApplication::kApplication()->enter_loop(); //enters the event loop for 
waiting, slotCopyResult will end it

This returns after slotCopyResult called exit_loop(); Resource consumption is 
ok now.

This trick comes from the sources of KIO::NetAccess.

@Joachim, can you please test this and if it works, create a release?

@All: Feedback appreciated.

mg



More information about the bt-devel mailing list