[PC-BSD Commits] r19621 - pcbsd/branches/9.1/src-qt4/pc-gdmconf
svn at pcbsd.org
svn at pcbsd.org
Wed Oct 10 03:56:49 PDT 2012
Author: yurkis
Date: 2012-10-10 10:56:49 +0000 (Wed, 10 Oct 2012)
New Revision: 19621
Modified:
pcbsd/branches/9.1/src-qt4/pc-gdmconf/mainwindow.cpp
pcbsd/branches/9.1/src-qt4/pc-gdmconf/mainwindow.ui
Log:
Add 'misc' tab to pc-gdmconf (already in current)
Modified: pcbsd/branches/9.1/src-qt4/pc-gdmconf/mainwindow.cpp
===================================================================
--- pcbsd/branches/9.1/src-qt4/pc-gdmconf/mainwindow.cpp 2012-10-09 23:56:56 UTC (rev 19620)
+++ pcbsd/branches/9.1/src-qt4/pc-gdmconf/mainwindow.cpp 2012-10-10 10:56:49 UTC (rev 19621)
@@ -30,6 +30,7 @@
const char* const GDM_CONFIG_FILE="/usr/local/etc/gdm/custom.conf";
const char* const DAEMON_GROUP= "daemon";
+const char* const SECURITY_GROUP = "security";
const char* const TIMED_LOGIN_ENABLED = "TimedLoginEnable";
const char* const TIMED_LOGIN_ENABLED_DEF="false";
@@ -53,6 +54,9 @@
const char* const XDCMP_PORT = "Port";
const char* const XDCMP_PORT_DEF = "177";
+const char* const DISALLOW_TCP = "DisallowTCP";
+const char* const DISALLOW_TCP_DEF = "true";
+
///////////////////////////////////////////////////////////////////////////////
inline bool toBoolean(QString Str, bool Default=false)
{
@@ -125,6 +129,8 @@
int MaxSessions = mConf.getKey(XDCMP_GROUP, MAX_SESSIONS, MAX_SESSIONS_DEF).toInt();
ui->MaxSessions->setValue(MaxSessions);
+ ui->AllowTCP->setChecked(!toBoolean(mConf.getKey(SECURITY_GROUP, DISALLOW_TCP, DISALLOW_TCP_DEF)));
+
}
///////////////////////////////////////////////////////////////////////////////
@@ -165,6 +171,8 @@
mConf.setKey(XDCMP_GROUP, DISPLAYS_PER_HOST, QString::number(ui->MaxConnections->value()));
mConf.setKey(XDCMP_GROUP, MAX_SESSIONS, QString::number(ui->MaxSessions->value()));
+ mConf.setKey(SECURITY_GROUP, DISALLOW_TCP, fromBoolean(ui->AllowTCP->checkState()!=Qt::Checked));
+
mConf.save();
}
Modified: pcbsd/branches/9.1/src-qt4/pc-gdmconf/mainwindow.ui
===================================================================
(Binary files differ)
More information about the Commits
mailing list