mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 13:31:49 +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,7 +99,8 @@ TempName::~TempName()
|
||||
TempName & TempName::operator=(TempName const & other)
|
||||
{
|
||||
if (this != &other) {
|
||||
tempname_.removeFile();
|
||||
if (!tempname_.empty())
|
||||
tempname_.removeFile();
|
||||
support::TempFile f("lyxextXXXXXX.tmp");
|
||||
f.setAutoRemove(false);
|
||||
tempname_ = f.name();
|
||||
|
Loading…
Reference in New Issue
Block a user