mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-06 00:07:29 -04:00
add decision gdal or native dialog
This commit is contained in:
parent
b24a8cbcdf
commit
526b804954
@ -57,9 +57,13 @@ class BatchAlgorithmDialog(QgsProcessingBatchAlgorithmDialogBase):
|
|||||||
def runAsSingle(self):
|
def runAsSingle(self):
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
from processing.algs.gdal.GdalAlgorithmDialog import GdalAlgorithmDialog
|
if self.algorithm().id().startswith("gdal"):
|
||||||
|
from processing.algs.gdal.GdalAlgorithmDialog import GdalAlgorithmDialog
|
||||||
|
dlg = GdalAlgorithmDialog(self.algorithm().create(), parent=iface.mainWindow())
|
||||||
|
else:
|
||||||
|
from processing.gui.AlgorithmDialog import AlgorithmDialog
|
||||||
|
dlg = AlgorithmDialog(self.algorithm().create(), parent=iface.mainWindow())
|
||||||
|
|
||||||
dlg = GdalAlgorithmDialog(self.algorithm().create(), parent=iface.mainWindow())
|
|
||||||
dlg.show()
|
dlg.show()
|
||||||
dlg.exec()
|
dlg.exec()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user