Commit 057b6e89 authored by Amy spark's avatar Amy spark 👉
Browse files

Give new single-layer pastes a default name

CCBUG: 455671
(cherry picked from commit 3706f1d5)
parent 5b5361c1
......@@ -528,7 +528,11 @@ void KisView::dropEvent(QDropEvent *event)
KisImportCatcher::adaptClipToImageColorSpace(clip, this->image());
KisPaintLayerSP layer = new KisPaintLayer(this->image(), "", OPACITY_OPAQUE_U8, clip);
KisPaintLayerSP layer = new KisPaintLayer(
this->image(),
this->image()->nextLayerName() + " " + i18n("(pasted)"),
OPACITY_OPAQUE_U8,
clip);
KisNodeCommandsAdapter adapter(this->mainWindow()->viewManager());
adapter.addNode(layer,
this->mainWindow()->viewManager()->activeNode()->parent(),
......
Supports Markdown
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