QFileInfo fi( file );
QString name = fi.fileName();
- if ( name.find( QRegExp("[-!?#*&]") ) != -1 ) {
+ if ( name.find( QRegExp("[-!?#*&]") ) != -1 || name.find( QRegExp("[0-9]")) == 0 ) {
SUIT_MessageBox::error1 ( parent(),
QObject::tr("WRN_WARNING"),
QObject::tr("WRN_FILE_NAME_BAD"),
msgstr "Dump study failed"
msgid "WRN_FILE_NAME_BAD"
-msgstr "Please enter correct file name. Special chars are not allowed."
+msgstr "Please, enter a valid file name. The name should not contain any reserved characters or begin with a numeral."
msgid "SAVE_POINT_OBJECT_TOOLTIP"
msgstr "Saved GUI state: %1"