{
QFileInfo fi( file );
QString name = fi.fileName();
-
- if ( name.indexOf( QRegExp("[-!?#*&]") ) >= 0 ) {
+ if ( name.indexOf( QRegExp("[-!?#*&]") ) >= 0 || name.indexOf( QRegExp("[0-9]")) == 0 ) {
SUIT_MessageBox::critical( parent(),
QObject::tr("WRN_WARNING"),
QObject::tr("WRN_FILE_NAME_BAD") );
<name>@default</name>
<message>
<source>WRN_FILE_NAME_BAD</source>
- <translation>Please enter correct file name. Special characters are not allowed.</translation>
+ <translation>Please, enter a valid file name. The name should not contain any reserved characters or begin with a numeral.</translation>
</message>
<message>
<source>CLOSE_LOCKED_STUDY</source>