From a308f430f694423064ebc86fd0506c8c6fdb3d93 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sun, 19 Apr 2015 22:30:21 -0400 Subject: Imported Upstream version 3.0.5 --- SQLiteStudio3/coreSQLiteStudio/populateworker.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'SQLiteStudio3/coreSQLiteStudio/populateworker.cpp') diff --git a/SQLiteStudio3/coreSQLiteStudio/populateworker.cpp b/SQLiteStudio3/coreSQLiteStudio/populateworker.cpp index 0b08526..f25a6ac 100644 --- a/SQLiteStudio3/coreSQLiteStudio/populateworker.cpp +++ b/SQLiteStudio3/coreSQLiteStudio/populateworker.cpp @@ -46,6 +46,13 @@ void PopulateWorker::run() if (i == 0 && !beforePopulating()) return; + if (isInterrupted()) + { + db->rollback(); + emit finished(false); + return; + } + args.clear(); for (PopulateEngine* engine : engines) args << engine->nextValue(nextValueError); @@ -58,6 +65,8 @@ void PopulateWorker::run() emit finished(false); return; } + + emit finishedStep(i + 1); } if (!db->commit()) -- cgit v1.2.3