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".
(cherry picked from commit
25e6b5da39b2f9d5e1ce7c66baaf0ce968c8dc1a)
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();
* INTERNALS
+- Squash annoying warning from Qt when attempting to delete a non-existent
+ file.
+
* DOCUMENTATION AND LOCALIZATION