From 341dfadc93b187b35da97ae9f67635bced59fd60 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 12 Feb 2022 13:41:38 +0200 Subject: [PATCH] Improve refreshing watermark data. --- src/app/puzzle/vpmainwindow.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/app/puzzle/vpmainwindow.cpp b/src/app/puzzle/vpmainwindow.cpp index 6affb8f69..07d61d720 100644 --- a/src/app/puzzle/vpmainwindow.cpp +++ b/src/app/puzzle/vpmainwindow.cpp @@ -357,9 +357,14 @@ VPMainWindow::VPMainWindow(const VPCommandLinePtr &cmd, QWidget *parent) : } m_layout->TileFactory()->RefreshTileInfos(); - m_layoutWatcher->blockSignals(true); - m_layout->TileFactory()->RefreshWatermarkData(); - m_layoutWatcher->blockSignals(false); + + if (path == m_layout->LayoutSettings().WatermarkPath()) + { + m_layoutWatcher->blockSignals(true); + m_layout->TileFactory()->RefreshWatermarkData(); + m_layoutWatcher->blockSignals(false); + } + m_graphicsView->RefreshLayout(); if (checkFile.exists())