mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-02-09 13:18:33 -06:00
Save as view: allow any state in the table
This check was supposed to help the user understand what this operation was for, but it was actually preventing to save as view table states that had global filter, display formats or custom order and not column filters. It's better to give the user the freedom, even to create maybe useless vies as: `CREATE VIEW "example_view" AS SELECT * FROM "main"."example"` See issue #2615
This commit is contained in:
@@ -1411,11 +1411,8 @@ void TableBrowser::exportFilteredTable()
|
||||
|
||||
void TableBrowser::saveFilterAsView()
|
||||
{
|
||||
if (m_model->filterCount() > 0)
|
||||
// Save as view a custom query without rowid
|
||||
emit createView(m_model->customQuery(false));
|
||||
else
|
||||
QMessageBox::information(this, qApp->applicationName(), tr("There is no filter set for this table. View will not be created."));
|
||||
// Save as view a custom query without rowid
|
||||
emit createView(m_model->customQuery(false));
|
||||
}
|
||||
|
||||
void TableBrowser::setTableEncoding(bool forAllTables)
|
||||
|
||||
Reference in New Issue
Block a user