From a855c8761542842173e84c7cfea05b08e223b7e7 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 2 Feb 2015 18:54:55 +0300 Subject: [PATCH] Avoid "QFileSystemWatcher: failed to add paths" warning when exiting SALOME --- src/HelpBrowser/HelpBrowser.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/HelpBrowser/HelpBrowser.cxx b/src/HelpBrowser/HelpBrowser.cxx index c6f88cffd..e81d875f0 100644 --- a/src/HelpBrowser/HelpBrowser.cxx +++ b/src/HelpBrowser/HelpBrowser.cxx @@ -220,7 +220,8 @@ int main( int argc, char **argv ) // Clear file system watcher if one has have path instance.clearWatcher(); - if ( aFile.open( QIODevice::WriteOnly | QIODevice::Text ) ) + QFileInfo wfi( aFile.fileName() ); + if ( QDir().mkpath( wfi.absolutePath() ) && aFile.open( QIODevice::WriteOnly | QIODevice::Text ) ) { // Write date and time when the file was created QTextStream aOutStream( &aFile ); -- 2.39.2