diff options
| author | Martin Kleusberg <mkleusberg@gmail.com> | 2017-11-17 13:36:44 +0100 |
|---|---|---|
| committer | Martin Kleusberg <mkleusberg@gmail.com> | 2017-11-17 13:36:44 +0100 |
| commit | 3b511f83c368354cd4dfd6d9a2897821c9538801 (patch) | |
| tree | 4eaaa2f63e5997c766a9f933669bd9286c64fee9 /src/sqlitetablemodel.h | |
| parent | ccb1fd4ca86cbcd367379356948e23c1047921f0 (diff) | |
Fix crash when exporting SQL files
Exporting SQL files crashed because of the multi-threaded loading of
data which also affects the SQL export. Because the table models were
destructed relatively quickly during the export's progress estimation,
their threads were still running and trying to access invalid data
structures.
See issue #1228.
Diffstat (limited to 'src/sqlitetablemodel.h')
| -rw-r--r-- | src/sqlitetablemodel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sqlitetablemodel.h b/src/sqlitetablemodel.h index 7eb7cc6f..69768e06 100644 --- a/src/sqlitetablemodel.h +++ b/src/sqlitetablemodel.h @@ -20,6 +20,7 @@ class SqliteTableModel : public QAbstractTableModel public: explicit SqliteTableModel(DBBrowserDB& db, QObject *parent = nullptr, size_t chunkSize = 50000, const QString& encoding = QString()); + ~SqliteTableModel(); void reset(); int rowCount(const QModelIndex &parent = QModelIndex()) const; |
