mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 11:00:44 -06:00
Add support for the special case for empty strings (issue #1189) in the "Use as Filter" option.
This commit is contained in:
@@ -361,9 +361,10 @@ void ExtendedTableWidget::useAsFilter()
|
||||
|
||||
if (data.isNull())
|
||||
m_tableHeader->setFilter(index.column(), "=NULL");
|
||||
else if (data.toString().isEmpty())
|
||||
m_tableHeader->setFilter(index.column(), "=''");
|
||||
else
|
||||
m_tableHeader->setFilter(index.column(), "=" + data.toString());
|
||||
|
||||
}
|
||||
|
||||
void ExtendedTableWidget::keyPressEvent(QKeyEvent* event)
|
||||
|
||||
Reference in New Issue
Block a user