diff --git a/code/peditor/peditor.cpp b/code/peditor/peditor.cpp index 7762ec56..b3b33f96 100644 --- a/code/peditor/peditor.cpp +++ b/code/peditor/peditor.cpp @@ -50,8 +50,8 @@ PropertiesEditor::PropertiesEditor(QWidget* parent, const arrayElement& ae, bool QString s_ip6 = "(?:[0-9a-fA-F]{1,4})"; // QLineEdits that allow single address - QRegularExpression rx4("\\s?|^" + s_ip4 + "\\." + s_ip4 + "\\." + s_ip4 + "\\." + s_ip4 + "$"); - QRegularExpression rx6("\\s?|^" + s_ip6 + ":" + s_ip6 + ":" + s_ip6 + ":" + s_ip6 + ":" + s_ip6 + ":" + s_ip6 + ":" + s_ip6 + ":" + s_ip6 + "$"); + QRegularExpression rx4("\\s?|^" + s_ip4 + "(?:\\." + s_ip4 + "){3}" + "$"); + QRegularExpression rx6("\\s?|^" + s_ip6 + "(?::" + s_ip6 + "){7}" + "$"); QRegularExpressionValidator* lev_4 = new QRegularExpressionValidator(rx4, this); QRegularExpressionValidator* lev_6 = new QRegularExpressionValidator(rx6, this); ui.lineEdit_ipv4address->setValidator(lev_4); @@ -61,8 +61,7 @@ PropertiesEditor::PropertiesEditor(QWidget* parent, const arrayElement& ae, bool ui.lineEdit_ipv6gateway->setValidator(lev_6); // now QLineEdits that allow multiple addresses - //rx4.setPattern("\\s*|(" + s_ip4 + "\\." + s_ip4 + "\\." + s_ip4 + "\\." + s_ip4 + "(\\s*[,|;]?\\s*))+"); - QRegularExpression rx46("\\s?|((" + s_ip4 + "\\." + s_ip4 + "\\." + s_ip4 + "\\." + s_ip4 + "|" + s_ip6 + ":" + s_ip6 + ":" + s_ip6 + ":" + s_ip6 + ":" + s_ip6 + ":" + s_ip6 + ":" + s_ip6 + ":" + s_ip6 + ")" + "(\\s*[,|;|\\s]+\\s*))+"); + QRegularExpression rx46("\\s?|((" + s_ip4 + "(?:\\." + s_ip4 + "){3}|" + s_ip6 + "(?::" + s_ip6 + "){7})(\\s*[,|;|\\s]\\s*))+"); QRegularExpressionValidator* lev_m = new QRegularExpressionValidator(rx46, this); ui.lineEdit_nameservers->setValidator(lev_m); ui.lineEdit_timeservers->setValidator(lev_m); diff --git a/code/resource.h b/code/resource.h index f09b22f6..8a2a3797 100755 --- a/code/resource.h +++ b/code/resource.h @@ -34,7 +34,7 @@ DEALINGS IN THE SOFTWARE. ///////////////////////////////// Program Values /////////////////////// // Program Info -#define VERSION "14.10.14-1" +#define VERSION "14.10.15-1" #define RELEASE_DATE "15 October 2014" #define COPYRIGHT_DATE "2013-2014" diff --git a/text/changelog.txt b/text/changelog.txt index f518daac..d07e467a 100644 --- a/text/changelog.txt +++ b/text/changelog.txt @@ -1,4 +1,4 @@ -q
Connman System Tray (CMST)
+
Connman System Tray (CMST)
Change Log


2014.10.15 @@ -10,7 +10,7 @@ q
Connman System Tray (CMST)
  • If an instance of CMST is started while one is running the running copy will be raised, and a message about a second instance trying to start will be printed to stderr.
  • Wifi signal strength bar and techonlogy buttons now have frames around them so that they do not fill an entire table cell
  • Autoconnect property can be set or unset from the property editor.
  • -
  • Fixed IPv6 validator in the properties editor.
  • +
  • Fixed the IPv6 validator in the properties editor.


  • 2014.08.23