source: filezilla/trunk/fuentes/src/interface/settings/optionspage_connection_passive.cpp @ 130

Last change on this file since 130 was 130, checked in by jrpelegrina, 4 years ago

First release to xenial

File size: 703 bytes
Line 
1#include <filezilla.h>
2#include "../Options.h"
3#include "settingsdialog.h"
4#include "optionspage.h"
5#include "optionspage_connection_passive.h"
6
7bool COptionsPageConnectionPassive::LoadPage()
8{
9        bool failure = false;
10
11        const int pasv_fallback = m_pOptions->GetOptionVal(OPTION_PASVREPLYFALLBACKMODE);
12        SetRCheck(XRCID("ID_PASSIVE_FALLBACK1"), pasv_fallback == 0, failure);
13        SetRCheck(XRCID("ID_PASSIVE_FALLBACK2"), pasv_fallback != 0, failure);
14
15        return !failure;
16}
17
18bool COptionsPageConnectionPassive::SavePage()
19{
20        m_pOptions->SetOption(OPTION_PASVREPLYFALLBACKMODE, GetRCheck(XRCID("ID_PASSIVE_FALLBACK1")) ? 0 : 1);
21
22        return true;
23}
24
25bool COptionsPageConnectionPassive::Validate()
26{
27        return true;
28}
Note: See TracBrowser for help on using the repository browser.