]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Modified validation regexp.
authorsan <san@opencascade.com>
Tue, 28 Sep 2010 12:12:54 +0000 (12:12 +0000)
committersan <san@opencascade.com>
Tue, 28 Sep 2010 12:12:54 +0000 (12:12 +0000)
src/Qtx/QtxPathEdit.cxx

index 552767bff9684dbe9286cea804336761aa1c2a7d..bddda6728f044404c26062956c2daadfc95cb8cc 100644 (file)
@@ -246,7 +246,7 @@ void QtxPathEdit::initialize()
   base->setSpacing( 5 );
 
   base->addWidget( myPath = new QLineEdit( this ) );
-  myPath->setValidator( new QRegExpValidator( QRegExp( "^([\\w\\./]{2}|[A-Z]:)[^:;\\*\\?]*[\\w\\\\/\\.]$" ), myPath ) );
+  myPath->setValidator( new QRegExpValidator( QRegExp( "^([\\w\\./]{2}|[A-Z]:)?[^:;\\*\\?]*[\\w\\\\/\\.]$" ), myPath ) );
 
   QToolButton* browse = new QToolButton( this );
   browse->setIcon( QPixmap( browse_icon ) );