Opened 11 years ago

Closed 10 years ago

#8381 closed Bug report (fixed)

Transfer - Speed Limits - Enable Checked State Incorrect on Restart

Reported by: Mitchell Jareo Owned by:
Priority: normal Component: FileZilla Client
Keywords: Cc: jorrit@…
Component version: Operating system type: Windows
Operating system version: 7


To reproduce...

  1. Enable speed limits
  2. Exit Client
  3. Restart Client

The menu item is not checked but speed limits are seemingly enabled.
Selecting the menu item will not set check on.
Selecting the menu item again will set check on.

Attachments (1)

8381-speedlimit-menu.patch (760 bytes ) - added by Jorrit Schippers 10 years ago.

Download all attachments as: .zip

Change History (3)

comment:1 by Jorrit Schippers, 10 years ago

Cc: jorrit@… added

Also happens on Ubuntu. The code doesn't check the speed limit option on startup.

The code block

bool enable = COptions::Get()->GetOptionVal(OPTION_SPEEDLIMIT_ENABLE) != 0;

int downloadLimit = COptions::Get()->GetOptionVal(OPTION_SPEEDLIMIT_INBOUND);
int uploadLimit = COptions::Get()->GetOptionVal(OPTION_SPEEDLIMIT_OUTBOUND);

if (!downloadLimit && !uploadLimit)
	enable = false;


from CMenuBar::OnOptionChanged also needs to be executed in CMenuBar* CMenuBar::Load(CMainFrame* pMainFrame). My C++ knowledge is not sufficient enough to abstract that code to a separate function, but I will attach a patch where I copy the code.

by Jorrit Schippers, 10 years ago

Attachment: 8381-speedlimit-menu.patch added

comment:2 by Tim Kosse, 10 years ago

Resolution: fixed
Status: newclosed

Thanks. I've put it into a function and committed the fix.

Note: See TracTickets for help on using tickets.