]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Avoid "QFileSystemWatcher: failed to add paths" warning when exiting SALOME
authorvsr <vsr@opencascade.com>
Mon, 2 Feb 2015 15:54:55 +0000 (18:54 +0300)
committervsr <vsr@opencascade.com>
Mon, 2 Feb 2015 15:54:55 +0000 (18:54 +0300)
src/HelpBrowser/HelpBrowser.cxx

index c6f88cffd7845e504c13f2dfcffe7d8ff13e0212..e81d875f04418a10ffd21f0fc64c96bada0940f0 100644 (file)
@@ -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 );