This also happens with KWrite if the file is modified, i.e. when KWrite writes its swap file to disk. vim writes a swap file on startup. KWrite's swap file name is of the form .something.po.kate-swp and vim's file name is of the form .something.po.swp. Project overview remains empty when KWrite or vim is closed and the swap file is deleted. Reproducible: Always Steps to Reproduce: 1. Open a project that contains some PO files in Lokalize. 2. Open one of the PO files belonging to that project in vim or KWrite. If opening in KWrite, make some changed but don't save the file. Actual Results: The file list becomes empty and all counts at the bottom (total, not ready and untranslated) become zero. Expected Results: The swap file doesn't cause the project view to be empty.
Git commit d1d65d406e2f56a46cb4fd36c6bb4440ea0701a0 by Nick Shaforostoff. Committed on 20/01/2015 at 22:58. Pushed by shaforo into branch 'master'. D +0 -10 src/nokde-stubs/klocalizedstring.cpp M +5 -0 src/nokde-stubs/klocalizedstring.h M +4 -0 src/nokde-stubs/prefs.cpp M +38 -13 src/project/projectmodel.cpp M +4 -1 src/project/projectmodel.h M +1 -1 src/project/projecttab.cpp M +13 -2 src/project/projectwidget.cpp M +3 -1 src/project/projectwidget.h M +1 -1 src/xlifftextedit.cpp http://commits.kde.org/lokalize/d1d65d406e2f56a46cb4fd36c6bb4440ea0701a0