Bugfix: "save as" indicated "file was updated"

After "save as", the file was considered outdated
and KLayout offered to reload it. Now, KLayout is
silent.
This commit is contained in:
Matthias Koefferlein 2017-02-25 00:08:37 +01:00
parent 1f60e7729e
commit 85f048dd6d
1 changed files with 3 additions and 1 deletions

View File

@ -264,7 +264,9 @@ LayoutHandle::save_as (const std::string &fn, tl::OutputStream::OutputStreamMode
file_watcher ().remove_file (filename ());
rename (filename_for_caption (fn));
set_filename (fn);
// NOTE: we don't use set_filename since this would re-attach the file watcher
m_filename = fn;
}