mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 19:11:39 -06:00
Also emit loading finished signal when fetching an empty table set
When fetching data from an empty table or from an SQL query which doesn't return any rows, we didn't emit the finishedFetch() signal which is used to indicate that the fetching is completed. This is fixed by this commit, so that the signal is always emitted no matter the number of rows returned. This fixes (probably besides other things) the current row numbers at the bottom of the Browse Data tab when changing from a non-empty table to an empty one.
This commit is contained in:
@@ -578,8 +578,9 @@ void SqliteTableModel::fetchData(unsigned int from, unsigned to)
|
||||
{
|
||||
beginInsertRows(QModelIndex(), num_rows_before_insert, m_data.size()-1);
|
||||
endInsertRows();
|
||||
emit finishedFetch();
|
||||
}
|
||||
|
||||
emit finishedFetch();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user