![screenshot 2018-03-06 at 4 11 21 pm](https://user-images.githubusercontent.com/863730/37058653-389cddc0-2159-11e8-9b02-f4cbc5fe30d7.png)
Using 20e3b9a485fd6b23785c5caa49d01ea49fdc8bcf. Should obviously be 9050, not %2.
{
    return OptionIDRowCount;
}
struct ProxySetting {
    bool is_set;
    QString ip;
    QString port;
};
static ProxySetting GetProxySetting(QSettings &settings, const QString &name)
{
    static const ProxySetting default_val = {false, DEFAULT_GUI_PROXY_HOST, QString("%1").arg(DEFAULT_GUI_PROXY_PORT)};
    
    if (!settings.contains(name)) {
        return default_val;
    }
    
    QStringList ip_port = settings.value(name).toString().split(":", QString::SkipEmptyParts);
    if (ip_port.size() == 2) {
        return {true, ip_port.at(0), ip_port.at(1)};
    } else { 
        return default_val;
    }
}
static void SetProxySetting(QSettings &settings, const QString &name, const ProxySetting &ip_port)
{
    settings.setValue(name, ip_port.ip + ":" + ip_port.port);
}
QVariant OptionsModel::data(const QModelIndex & index, int role) const