https://bugs.kde.org/show_bug.cgi?id=400357

--- Comment #12 from Dmitry Utkin <loen...@gmail.com> ---
Created attachment 120311
  --> https://bugs.kde.org/attachment.cgi?id=120311&action=edit
Disable updating layer name upon thumbnail update

I had some debug session today and found the reason of the bug. It comes from
the timer which updates the thumbnail which drops to
"LayerBox::updateThumbnail()" -> "NodeView::updateNode()" ->
"NodeView::dataChanged(...)" -> "NodeDelegate::setEditorData(...)". 

There is no reason to update layer name in edit box every time when that signal
is emitted, actually, it's sufficient enough to update it for the first time
only when the layer name is to be put to the editbox, because of the second and
further signals are came from "updateThumbnail".

I didn't find an other simple way to fix it, but this patch works reliable
enough and do not revert layer name any more.

Please consider this patch, it fixes the bug, but I'm not sure if it is the
correct way to go.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to