[dbmanager] add string description to query task for better notification (#8259)

This commit is contained in:
Mathieu Pellerin 2018-10-23 13:34:03 +07:00 committed by GitHub
parent f7cd2cf2a1
commit f32fe8b210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ class SqlResultModelAsync(QObject):
class SqlResultModelTask(QgsTask):
def __init__(self, db, sql, parent):
super().__init__()
super().__init__(description=QApplication.translate("DBManagerPlugin", "Executing SQL"))
self.db = db
self.sql = sql
self.parent = parent