Handle plain/regexp mode for delimited text provider same as for preview

This commit is contained in:
Marco Hugentobler 2013-02-28 11:33:44 +01:00
parent f1a85a58a5
commit a4d83139f0

View File

@ -113,7 +113,7 @@ void QgsDelimitedTextSourceSelect::on_buttonBox_accepted()
//Build the delimited text URI from the user provided information
QString delimiterType;
if ( delimiterSelection->isChecked() )
delimiterType = "regexp";
delimiterType = ( selectedChars().size() <= 1 ) ? "plain" : "regexp";
else if ( delimiterPlain->isChecked() )
delimiterType = "plain";
else if ( delimiterRegexp->isChecked() )