diff options
Diffstat (limited to 'plugins/FTPFileYM/src/ftpfile.cpp')
-rw-r--r-- | plugins/FTPFileYM/src/ftpfile.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/FTPFileYM/src/ftpfile.cpp b/plugins/FTPFileYM/src/ftpfile.cpp index 53b2c5ef1f..2ae9808654 100644 --- a/plugins/FTPFileYM/src/ftpfile.cpp +++ b/plugins/FTPFileYM/src/ftpfile.cpp @@ -230,7 +230,8 @@ int PrebuildContactMenu(WPARAM wParam, LPARAM lParam) void PrebuildMainMenu()
{
for (int i=0; i < ServerList::FTP_COUNT; i++)
- Menu_ShowItem(hMainSubMenu[i], ftpList[i]->bEnabled);
+ if (ftpList[i])
+ Menu_ShowItem(hMainSubMenu[i], ftpList[i]->bEnabled);
}
int TabsrmmButtonPressed(WPARAM wParam, LPARAM lParam)
|