Skip to content

Commit 575c97f

Browse files
author
jef
committed
fix #1230
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9112 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 5b26cc2 commit 575c97f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/plugins/spit/qgsshapefile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ bool QgsShapeFile::scanGeometries()
8080
QProgressDialog *sg = new QProgressDialog();
8181
sg->setMinimum(0);
8282
sg->setMaximum(0);
83-
QString label = "Scanning ";
83+
QString label = tr("Scanning ");
8484
label += filename;
8585
sg->setLabel(new QLabel(label));
8686
sg->show();

src/plugins/spit/qgsspit.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ void QgsSpit::import()
561561

562562
for ( std::vector<QString>::size_type k = 1; k < names_copy.size(); k++ )
563563
{
564-
QgsDebugMsg( tr("Checking to see if ") + names_copy[ k ] + " == " + names_copy[ k - 1 ] );
564+
QgsDebugMsg( QString("Checking to see if %1 == %2").arg(names_copy[ k ]).arg( names_copy[ k - 1 ] ) );
565565
if ( names_copy[ k ] == names_copy[ k - 1 ] )
566566
dupl += names_copy[ k ] + "\n";
567567
}
@@ -645,7 +645,8 @@ void QgsSpit::import()
645645
}
646646

647647
query = "SET SEARCH_PATH TO ";
648-
if ( tblShapefiles->item( i, ColDBSCHEMA )->text() != "public" )
648+
if ( !tblShapefiles->item( i, ColDBSCHEMA )->text().isEmpty() &&
649+
tblShapefiles->item( i, ColDBSCHEMA )->text() != "public")
649650
query += QgsPgUtil::quotedValue( tblShapefiles->item( i, ColDBSCHEMA )->text() ) + ",";
650651
query += QgsPgUtil::quotedValue( "public" );
651652
res = PQexec( conn, query.toUtf8() );

0 commit comments

Comments
 (0)