diff --git a/part.cpp b/part.cpp index b290aad0e91bd18097dc1c51a48fe595cd531194..3273ed84ad8fb7e80bc0c2f82cbd72b95fef5052 100644 --- a/part.cpp +++ b/part.cpp @@ -547,6 +547,7 @@ m_cliPresentation(false), m_cliPrint(false), m_embedMode(detectEmbedMode(parentW // document watcher and reloader m_watcher = new KDirWatch( this ); connect( m_watcher, &KDirWatch::dirty, this, &Part::slotFileDirty ); + connect( m_watcher, &KDirWatch::created, this, &Part::slotFileDirty ); m_dirtyHandler = new QTimer( this ); m_dirtyHandler->setSingleShot( true ); connect( m_dirtyHandler, &QTimer::timeout,this, &Part::slotDoFileDirty );