From 85f048dd6d038c4668863afea1ae404c498d69a2 Mon Sep 17 00:00:00 2001 From: Matthias Koefferlein Date: Sat, 25 Feb 2017 00:08:37 +0100 Subject: [PATCH] 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. --- src/laybasic/layCellView.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/laybasic/layCellView.cc b/src/laybasic/layCellView.cc index 3b8aeee89..86e4bd46d 100644 --- a/src/laybasic/layCellView.cc +++ b/src/laybasic/layCellView.cc @@ -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; }