Skip to content
Permalink
Browse files

Use correct stylesheet for processing dialogs

  • Loading branch information
nyalldawson committed Sep 25, 2018
1 parent afd7b92 commit 6d1a9295f7660b7a3bdf056157fe95df774fd226
@@ -66,8 +66,9 @@

class AlgorithmDialog(QgsProcessingAlgorithmDialogBase):

def __init__(self, alg, in_place=False):
super().__init__()
def __init__(self, alg, in_place=False, parent=None):
super().__init__(parent)

self.feedback_dialog = None
self.in_place = in_place

@@ -45,7 +45,7 @@
QgsScopedProxyProgressTask)

from qgis.gui import QgsProcessingAlgorithmDialogBase
from qgis.utils import OverrideCursor
from qgis.utils import OverrideCursor, iface

from processing.gui.BatchPanel import BatchPanel
from processing.gui.AlgorithmExecutor import execute
@@ -61,8 +61,8 @@

class BatchAlgorithmDialog(QgsProcessingAlgorithmDialogBase):

def __init__(self, alg):
super().__init__()
def __init__(self, alg, parent=None):
super().__init__(parent)

self.setAlgorithm(alg)

@@ -212,7 +212,8 @@ def activateCurrent(self):
def executeAlgorithmAsBatchProcess(self):
alg = self.algorithmTree.selectedAlgorithm().create() if self.algorithmTree.selectedAlgorithm() is not None else None
if alg is not None:
dlg = BatchAlgorithmDialog(alg)
dlg = BatchAlgorithmDialog(alg, iface.mainWindow())
dlg.setAttribute(Qt.WA_DeleteOnClose)
dlg.show()
dlg.exec_()

@@ -243,7 +244,8 @@ def executeAlgorithm(self):
dlg = alg.createCustomParametersWidget(self)

if not dlg:
dlg = AlgorithmDialog(alg, self.in_place_mode)
dlg = AlgorithmDialog(alg, self.in_place_mode, iface.mainWindow())
dlg.setAttribute(Qt.WA_DeleteOnClose)
canvas = iface.mapCanvas()
prevMapTool = canvas.mapTool()
dlg.show()

0 comments on commit 6d1a929

Please sign in to comment.
You can’t perform that action at this time.