File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ bool QgsShapeFile::scanGeometries()
80
80
QProgressDialog *sg = new QProgressDialog ();
81
81
sg->setMinimum (0 );
82
82
sg->setMaximum (0 );
83
- QString label = " Scanning " ;
83
+ QString label = tr ( " Scanning " ) ;
84
84
label += filename;
85
85
sg->setLabel (new QLabel (label));
86
86
sg->show ();
Original file line number Diff line number Diff line change @@ -561,7 +561,7 @@ void QgsSpit::import()
561
561
562
562
for ( std::vector<QString>::size_type k = 1 ; k < names_copy.size (); k++ )
563
563
{
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 ] ) );
565
565
if ( names_copy[ k ] == names_copy[ k - 1 ] )
566
566
dupl += names_copy[ k ] + " \n " ;
567
567
}
@@ -645,7 +645,8 @@ void QgsSpit::import()
645
645
}
646
646
647
647
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" )
649
650
query += QgsPgUtil::quotedValue ( tblShapefiles->item ( i, ColDBSCHEMA )->text () ) + " ," ;
650
651
query += QgsPgUtil::quotedValue ( " public" );
651
652
res = PQexec ( conn, query.toUtf8 () );
You can’t perform that action at this time.
0 commit comments