aMule Forum

English => en_Bugs => Topic started by: tux4me on November 21, 2008, 01:07:42 PM

Title: Download window is constant updating
Post by: tux4me on November 21, 2008, 01:07:42 PM
Im on Fedora 9

My download window in my own compiled 2.2.1 suddenly started to refresh ever 2 second.
I've been running that for a long time with no problems, so im pretty sure its not a amule bug, but you guys might know whats wrong ;)
It works fine, but it looses focus ever 2 second so i cant use rightclick on files :(

Now i uninstalled 2.2.1 and installed 2.2.2 (not my compile) ..... still same problem and maybe even worse (every 1 second now)

Any ideas why this happen ?
Title: Re: Download window is constant updating
Post by: tux4me on November 21, 2008, 01:11:50 PM
ok it IS a aMule bug, hehe, i just discovered that its the "Auto sort files in the download queue" option that makes the window update constant.
I have no idea why this option suddenly is turned on, maybe another bug ?
Title: Re: Download window is constant updating
Post by: ozsd on November 21, 2008, 03:20:02 PM
I can confirm that when "Auto sort files in the download queue" is enabled it is difficult to execute some operations: if the next "refresh" happens before you execute the relative option from the menu (e.g. video preview), that option won't have any effect.
Title: Re: Download window is constant updating
Post by: skolnick on November 23, 2008, 12:23:17 AM
Have you filed a bug against this? http://bugs.amule.org

Regards.
Title: Re: Download window is constant updating
Post by: Stu Redman on November 23, 2008, 11:44:39 AM
That's not a bug. If you rebuild a listcontrol, the context menue goes away, that's simply how it works.
Just switch sorting temporarily to something static, like the name.  :)
Title: Re: Download window is constant updating
Post by: GonoszTopi on November 23, 2008, 01:52:02 PM
Actually, a good solution would be to disable listctrl update while the context menu is open. However, I don't know how hard it would be to implement and what other bugs it might introduce (e.g. leaving the listctrl update disabled forever, etc...) For now, you should disable auto-sort when you want to use the context menu :(
Title: Re: Download window is constant updating
Post by: skolnick on November 25, 2008, 07:07:20 PM
For me, it's a bug. Emule updates constantly the download list, and it doesn't have this issue with right-clicking (unless you right click a file and in that exact moment its row changes position because of the sorting). My point is: if emule can do it, for sure amule can do it, I think it's just a matter of finding how to tweak the download table.

Regards.

P.S: I'm no developer, so avoid flames about me being clueless on what I said :P
Title: Re: Download window is constant updating
Post by: Stu Redman on November 25, 2008, 08:41:41 PM
if emule can do it, for sure amule can do it
Yeah, we only have to dump wxWidgets and Linux support and switch to MFC.  ;D
Seriously, aMule is using a different GUI platform, and this issue is strongly related to it. There might be a way to work around the problem even with wx (I haven't investigated closely), but then there may be not.
Way worse is the problem with the file detail dialog imho. Open file dialog of a freshly started download with many sources, click and hold the vertical slider and watch it go gaga.  :(
Title: Re: Download window is constant updating
Post by: Stu Redman on November 26, 2008, 10:27:36 AM
For me, it's a bug.
You are right though. The current item gets deselected in aMule's code. That could be changed.
But the listcontrols are getting a major overhaul at the moment anyway. If the problem persists afterwards we can look at it.