Commit 688d762b authored by Amy spark's avatar Amy spark 👉
Browse files

KisImageFromClipboardWidget: fix wrong order of showEvent() handling

This fixes the Create button being improperly enabled after the
Clipboard widget determined there is no image available.

CCBUG: 459800
parent 7380f22b
......@@ -102,12 +102,13 @@ void KisImageFromClipboardWidget::clipboardDataChanged()
void KisImageFromClipboardWidget::showEvent(QShowEvent *event)
{
KisCustomImageWidget::showEvent(event);
connect(KisClipboard::instance(), &KisClipboard::clipChanged, this, &KisImageFromClipboardWidget::clipboardDataChanged, Qt::UniqueConnection);
if (!lblPreview->isVisible()) {
QTimer::singleShot(100, this, SLOT(createClipboardPreview()));
}
KisCustomImageWidget::showEvent(event);
}
......
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