Skip to content

Commit c43f554

Browse files
author
jef
committed
allow filtered postgres tables to have no features
git-svn-id: http://svn.osgeo.org/qgis/trunk@9253 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 7defe5a commit c43f554

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app/qgspgquerybuilder.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -338,14 +338,18 @@ void QgsPgQueryBuilder::on_btnOk_clicked()
338338
}
339339
else
340340
{
341+
#if 0 // when is this necessary? [jef]
341342
if ( numRecs == 0 )
342343
{
343344
QMessageBox::warning( this, tr( "No Records" ), tr( "The query you specified results in zero records being returned. Valid PostgreSQL layers must have at least one feature." ) );
344345
}
345346
else
346347
{
348+
#endif
347349
this->accept();
350+
#if 0
348351
}
352+
#endif
349353
}
350354
}
351355
else

0 commit comments

Comments
 (0)