From c1f2c479d2ce3dce7be28e7b781a581bb86576dc Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Fri, 17 Feb 2012 14:37:43 +0100 Subject: [PATCH] gui: possibly create the idx status file before trying to watch it --- src/qtgui/rclmain_w.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/qtgui/rclmain_w.cpp b/src/qtgui/rclmain_w.cpp index 96e1df8d..19b76dae 100644 --- a/src/qtgui/rclmain_w.cpp +++ b/src/qtgui/rclmain_w.cpp @@ -101,6 +101,11 @@ void RclMain::init() (const char *)tr("filtered").toUtf8()); periodictimer = new QTimer(this); + + // idxstatus file. Make sure it exists before trying to watch it + // (case where we're started on an older index, or if the status + // file was deleted since indexing + ::close(::open(theconfig->getIdxStatusFile().c_str(), O_CREAT, 0600)); m_watcher.addPath(QString::fromLocal8Bit( theconfig->getIdxStatusFile().c_str())); // At least some versions of qt4 don't display the status bar if