From 8974c082dc4d2803efcf1445ab6ef3539302bde0 Mon Sep 17 00:00:00 2001 From: vsr Date: Sun, 16 Oct 2011 12:52:35 +0000 Subject: [PATCH] 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 --- src/Qtx/QtxResourceMgr.cxx | 12 +++++- src/SUIT/SUIT_ResourceMgr.cxx | 54 ++++++++++++++++++++------- src/SUIT/SUIT_ResourceMgr.h | 2 +- src/SUITApp/SUITApp.cxx | 20 ++++++++-- src/Session/SALOME_Session_Server.cxx | 4 +- 5 files changed, 71 insertions(+), 21 deletions(-) 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