Commit 716e6d3e authored by Boudewijn Rempt's avatar Boudewijn Rempt

Explicitly parent the filter layer dialog and make it Qt::Dialog

CCBUG:408867
parent 28a4294d
......@@ -48,7 +48,7 @@ KisDlgAdjustmentLayer::KisDlgAdjustmentLayer(KisNodeSP node,
const QString &layerName,
const QString &caption,
KisViewManager *view, QWidget *parent)
: KoDialog(parent)
: KoDialog(parent, Qt::Dialog)
, m_node(node)
, m_nodeFilterInterface(nfi)
, m_currentFilter(0)
......
......@@ -660,7 +660,7 @@ KisNodeSP KisLayerManager::addAdjustmentLayer(KisNodeSP activeNode)
KisPaintDeviceSP previewDevice = new KisPaintDevice(*adjl->original());
KisDlgAdjustmentLayer dlg(adjl, adjl.data(), previewDevice, image->nextLayerName(), i18n("New Filter Layer"), m_view);
KisDlgAdjustmentLayer dlg(adjl, adjl.data(), previewDevice, image->nextLayerName(), i18n("New Filter Layer"), m_view, qApp->activeWindow());
dlg.resize(dlg.minimumSizeHint());
// ensure that the device may be free'd by the dialog
......
......@@ -246,7 +246,7 @@ KisNodeSP KisMaskManager::createFilterMask(KisNodeSP activeNode, KisPaintDeviceS
KisDlgAdjustmentLayer dialog(mask, mask.data(), originalDevice,
mask->name(), i18n("New Filter Mask"),
m_view);
m_view, qApp->activeWindow());
// If we are supposed to not disturb the user, don't start asking them about things.
if(quiet) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment