From: vsr Date: Sun, 16 Oct 2011 12:52:35 +0000 (+0000) Subject: Issue 0021247: EDF 1856 STUDY: Unification of the configuration files and directories... X-Git-Tag: V6_4_0a1~29 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8974c082dc4d2803efcf1445ab6ef3539302bde0;p=modules%2Fgui.git Issue 0021247: EDF 1856 STUDY: Unification of the configuration files and directories of Salome Part 1: Store GUI prefrences (+ style) in the ~/.config/salome directory --- diff --git a/src/Qtx/QtxResourceMgr.cxx b/src/Qtx/QtxResourceMgr.cxx index 801593c4d..a9656564c 100644 --- a/src/Qtx/QtxResourceMgr.cxx +++ b/src/Qtx/QtxResourceMgr.cxx @@ -635,6 +635,9 @@ bool QtxResourceMgr::IniFormat::load( const QString& fname, QMap& secMap ) { + if ( !Qtx::mkDir( QFileInfo( fname ).absolutePath() ) ) + return false; + QFile file( fname ); if ( !file.open( QFile::WriteOnly ) ) return false; @@ -877,6 +880,9 @@ bool QtxResourceMgr::XmlFormat::save( const QString& fname, const QMap