We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 6d6eede commit d61c536Copy full SHA for d61c536
src/app/composer/qgsatlascompositionwidget.cpp
@@ -123,8 +123,18 @@ void QgsAtlasCompositionWidget::on_mAtlasFilenameExpressionButton_clicked()
123
QString expression = exprDlg.expressionText();
124
if ( !expression.isEmpty() )
125
{
126
- // will emit a textChanged signal
+ //set atlas filename expression
127
mAtlasFilenamePatternEdit->setText( expression );
128
+ if ( ! atlasMap->setFilenamePattern( expression ) )
129
+ {
130
+ //expression could not be set
131
+ QMessageBox::warning( this
132
+ , tr( "Could not evaluate filename pattern" )
133
+ , tr( "Could not set filename pattern as '%1'.\nParser error:\n%2" )
134
+ .arg( expression )
135
+ .arg( atlasMap->filenamePatternErrorString() )
136
+ );
137
+ }
138
}
139
140
0 commit comments