• Milian Wolff's avatar
    Delay handling of KDirWatch signals · c7b8e797
    Milian Wolff authored
    This is a workaround for bug 404184, where KDirWatch only emits
    a 'deleted' signal during a 'git stash' workflow, which never
    gets paired by a 'created' signal, even though the file actually
    exists before and after the 'git stash' operation.
    
    By delaying the handling of the KDirWatch signals, we won't fall
    into the trap of removing a file even though it actually exists.
    Since it doesn't really matter how fast we react on such events,
    it's in my opinion fine to delay it for a full second. Having a
    correct state is much more important than having any state fast.
    
    Without this patch, KDevelop frequently forgets about files from large
    projects I work on after a `git stash`. This then fubars the C++
    support completely, since it cannot find any include paths and
    defines anymore.
    c7b8e797
Name
Last commit
Last update
app Loading commit data...
app_templates Loading commit data...
appimage Loading commit data...
cmake/modules Loading commit data...
doc Loading commit data...
file_templates Loading commit data...
kdevplatform Loading commit data...
pics Loading commit data...
plugins Loading commit data...
release-scripts Loading commit data...
shortcuts Loading commit data...
.arcconfig Loading commit data...
.clang-format Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.gitlab-ci.yml Loading commit data...
.kateconfig Loading commit data...
.kateproject Loading commit data...
.krazy Loading commit data...
AUTHORS Loading commit data...
CMakeLists.txt Loading commit data...
COPYING Loading commit data...
COPYING.DOC Loading commit data...
COPYING.LIB Loading commit data...
CTestConfig.cmake Loading commit data...
CTestCustom.cmake Loading commit data...
Doxyfile Loading commit data...
ExtraDesktop.sh Loading commit data...
INSTALL Loading commit data...
KDevelopConfig.cmake.in Loading commit data...
README.md Loading commit data...
config-kdevelop.h.cmake Loading commit data...
format.config.uncrustify Loading commit data...
format_sources Loading commit data...
kdevelop.kdev4 Loading commit data...
kdevelop_bash_completion Loading commit data...
org.kde.kdevelop.appdata.xml Loading commit data...