From daf37ca63fc0b43686c58d04a4ac4357892effee Mon Sep 17 00:00:00 2001 From: stv Date: Wed, 14 Dec 2011 09:26:24 +0000 Subject: [PATCH] QDir::convertSepartors() added for loaded file paths (import and transalator loading). --- src/Qtx/QtxResourceMgr.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Qtx/QtxResourceMgr.cxx b/src/Qtx/QtxResourceMgr.cxx index 13b8938ea..6014f34d0 100644 --- a/src/Qtx/QtxResourceMgr.cxx +++ b/src/Qtx/QtxResourceMgr.cxx @@ -393,7 +393,7 @@ QPixmap QtxResourceMgr::Resources::loadPixmap( const QString& sect, const QStrin QTranslator* QtxResourceMgr::Resources::loadTranslator( const QString& sect, const QString& prefix, const QString& name ) const { QTranslator* trans = new QtxTranslator( 0 ); - QString fname = fileName( sect, prefix, name ); + QString fname = QDir::convertSeparators( fileName( sect, prefix, name ) ); if ( !trans->load( Qtx::file( fname, false ), Qtx::dir( fname ) ) ) { delete trans; @@ -585,7 +585,7 @@ bool QtxResourceMgr::IniFormat::load( const QString& fname, QMap