[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kdeprint/management
From: Michael Goffioul <goffioul () imec ! be>
Date: 2004-02-23 17:26:55
Message-ID: 20040223172655.D0E56996E () office ! kde ! org
[Download RAW message or body]
CVS commit by goffioul:
Forbid slash in instance name (this is not CUPS-compliant)
M +4 -4 kminstancepage.cpp 1.31
--- kdelibs/kdeprint/management/kminstancepage.cpp #1.30:1.31
@@ -139,6 +139,6 @@ void KMInstancePage::slotNew()
if (ok)
{
- if (name.find(QRegExp("\\s")) != -1)
- KMessageBox::error(this, i18n("Instance name may not contain \
any space!")); + if (name.find(QRegExp("[/\\s]")) != -1)
+ KMessageBox::error(this, i18n("Instance name may not contain \
any space or slash!")); else
{
@@ -184,6 +184,6 @@ void KMInstancePage::slotCopy()
if (ok)
{
- if (name.find(QRegExp("\\s")) != -1)
- KMessageBox::error(this, i18n("Instance name may not \
contain any space!")); + if (name.find(QRegExp("[/\\s]")) != \
-1) + KMessageBox::error(this, i18n("Instance name may \
not contain any space or slash!")); else
{
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic