Bugfix for error in open qlx

git-svn-id: https://svn.code.sf.net/p/qlscribe/svn/trunk@150 cac9541e-1b8d-4bfa-827e-589bba606050
This commit is contained in:
ruglory
2009-04-24 00:32:10 +00:00
parent 086181cd8f
commit b55b148cca
+2 -2
View File
@@ -83,8 +83,8 @@ void QCDScene::start( LabelMode mode )
bool QCDScene::load( const QString &fileName, QString *errMessage )
{
QFile file( fileName );
if( QRegExp( "*.\\.qlx", Qt::CaseInsensitive ).exactMatch( fileName ) ) {
if( QRegExp( ".*.\\.qlx$", Qt::CaseInsensitive ).exactMatch( fileName ) ) {
QFile file( fileName );
if( !file.open( QIODevice::ReadOnly | QIODevice::Text ) ) {
if( errMessage )
*errMessage = "cannot open file for reading";