Fix copy-paste of rich resource text

* We need to cache to the QString text on demand, which requires a context
  potentially sooner than paint/etc time.
This commit is contained in:
baldurk
2020-12-02 17:44:46 +00:00
parent 1b9cd082bd
commit 9610919c16
8 changed files with 15 additions and 11 deletions
+1 -1
View File
@@ -986,7 +986,7 @@ ShaderViewer *ShaderViewer::LoadEditor(ICaptureContext &ctx, QVariantMap data,
{
QVariant v = data[lit("id")];
RichResourceTextInitialise(v);
RichResourceTextInitialise(v, &ctx);
id = v.value<ResourceId>();
}
ShaderStage stage = (ShaderStage)data[lit("stage")].toUInt();