mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-03 08:28:25 +00:00
Fix preview with a nested preview not being shown (#10795)
Regression atdb581113
. (cherry picked from commit94c65074e0
)
This commit is contained in:
parent
6cdd0b9fe0
commit
225d47f298
@ -239,7 +239,7 @@ private:
|
|||||||
/// We don't own this
|
/// We don't own this
|
||||||
static lyx::Converter const * pconverter_;
|
static lyx::Converter const * pconverter_;
|
||||||
|
|
||||||
signals2::scoped_connection connection_;
|
Trackable trackable_;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@ -738,10 +738,9 @@ void PreviewLoader::Impl::startLoading(bool wait)
|
|||||||
|
|
||||||
// Initiate the conversion from LaTeX to bitmap images files.
|
// Initiate the conversion from LaTeX to bitmap images files.
|
||||||
ForkedCall::sigPtr convert_ptr = make_shared<ForkedCall::sig>();
|
ForkedCall::sigPtr convert_ptr = make_shared<ForkedCall::sig>();
|
||||||
// This is a scoped connection
|
convert_ptr->connect(ForkedProcess::slot([this](pid_t pid, int retval){
|
||||||
connection_ = convert_ptr->connect([this](pid_t pid, int retval){
|
finishedGenerating(pid, retval);
|
||||||
finishedGenerating(pid, retval);
|
}).track_foreign(trackable_.p()));
|
||||||
});
|
|
||||||
|
|
||||||
ForkedCall call(buffer_.filePath());
|
ForkedCall call(buffer_.filePath());
|
||||||
int ret = call.startScript(command, convert_ptr);
|
int ret = call.startScript(command, convert_ptr);
|
||||||
|
Loading…
Reference in New Issue
Block a user