Avoid useless warning from Qt

When cloning InsetExternal, the tempname_ member of InsetExternalParams
has yet to be initialized. So, trying to remove it causes the warning
"QFile::remove: Empty or null file name".
This commit is contained in:
Enrico Forestieri 2017-01-08 23:11:04 +01:00
parent 06e2669b35
commit 25e6b5da39

View File

@ -99,6 +99,7 @@ TempName::~TempName()
TempName & TempName::operator=(TempName const & other)
{
if (this != &other) {
if (!tempname_.empty())
tempname_.removeFile();
support::TempFile f("lyxextXXXXXX.tmp");
f.setAutoRemove(false);