Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/attributes/attributecontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1715,6 +1715,13 @@ void AttributeController::renamePhotos()

InputUtils::sanitizePath( newName );

if ( newName.trimmed().isEmpty() )
{
CoreUtils::log( QStringLiteral( "Photo name format" ), QStringLiteral( "Expression for %1:%2 evaluated to an empty or NULL name, keeping the original file name" ).arg( mFeatureLayerPair.layer()->name(), field.name() ) );
++formItemsIterator;
continue;
}

const QFileInfo fi( src );
newName = QStringLiteral( "%1.%2" ).arg( newName, fi.completeSuffix() );

Expand Down
Loading