Mercurial > hg > octave-max
changeset 15450:63dd6c30b294
disable notification of modified file while saving
* file-editor-tab.cc: remove the file from tracker list before saving
author | Torsten <ttl@justmail.de> |
---|---|
date | Fri, 21 Sep 2012 20:47:34 +0200 |
parents | 0a0912a9ab6e |
children | 1b4d7c703eed |
files | libgui/src/m-editor/file-editor-tab.cc |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor-tab.cc +++ b/libgui/src/m-editor/file-editor-tab.cc @@ -597,6 +597,11 @@ return save_file_as(); } + // remove the file to save from the tracker since we will change it on disk now + QStringList watched_files = _file_system_watcher.files(); + if (!watched_files.isEmpty ()) + _file_system_watcher.removePath(saveFileName); + // open the file for writing QFile file (saveFileName); if (!file.open (QFile::WriteOnly))