gui: possibly create the idx status file before trying to watch it

This commit is contained in:
Jean-Francois Dockes 2012-02-17 14:37:43 +01:00
parent 4c3d728032
commit c1f2c479d2

View File

@ -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