summaryrefslogtreecommitdiff
path: root/plugins/FTPFileYM/src/manager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/FTPFileYM/src/manager.cpp')
-rw-r--r--plugins/FTPFileYM/src/manager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/FTPFileYM/src/manager.cpp b/plugins/FTPFileYM/src/manager.cpp
index abf1ec3f0a..3befc801ce 100644
--- a/plugins/FTPFileYM/src/manager.cpp
+++ b/plugins/FTPFileYM/src/manager.cpp
@@ -49,7 +49,8 @@ Manager::~Manager()
void Manager::init()
{
- if (opt.enabled != 0)
+ ServerList::FTP *ftp = ftpList.getSelected();
+ if (ftp->bEnabled)
{
this->hwnd = CreateDialog(hInst, MAKEINTRESOURCE(IDD_DLG_MANAGER), NULL, Manager::ManagerDlgProc);
this->hwndFileTree = GetDlgItem(this->hwnd, IDC_FILELIST);