mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
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:
parent
06e2669b35
commit
25e6b5da39
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user