Skip to content

Commit 321a84b

Browse files
author
jef
committedSep 3, 2008
allow filtered postgres tables to have no features
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9253 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent d76898c commit 321a84b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎src/app/qgspgquerybuilder.cpp

Lines changed: 4 additions & 0 deletions
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)