Skip to content

Commit a4d8313

Browse files
committed
Handle plain/regexp mode for delimited text provider same as for preview
1 parent f1a85a5 commit a4d8313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/delimitedtext/qgsdelimitedtextsourceselect.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void QgsDelimitedTextSourceSelect::on_buttonBox_accepted()
113113
//Build the delimited text URI from the user provided information
114114
QString delimiterType;
115115
if ( delimiterSelection->isChecked() )
116-
delimiterType = "regexp";
116+
delimiterType = ( selectedChars().size() <= 1 ) ? "plain" : "regexp";
117117
else if ( delimiterPlain->isChecked() )
118118
delimiterType = "plain";
119119
else if ( delimiterRegexp->isChecked() )

0 commit comments

Comments
 (0)