From 0dcd17afb128b08be3b2ad1b785d45864c023784 Mon Sep 17 00:00:00 2001
From: Mickael Savinaud <mickael.savinaud@c-s.fr>
Date: Fri, 7 Feb 2014 09:26:08 +0100
Subject: [PATCH] BUG: solve the bug MANTIS-849

---
 .../QtWidget/otbWrapperQtWidgetInputImageListParameter.cxx      | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Code/Wrappers/QtWidget/otbWrapperQtWidgetInputImageListParameter.cxx b/Code/Wrappers/QtWidget/otbWrapperQtWidgetInputImageListParameter.cxx
index fdce72984d..68917ac0c2 100644
--- a/Code/Wrappers/QtWidget/otbWrapperQtWidgetInputImageListParameter.cxx
+++ b/Code/Wrappers/QtWidget/otbWrapperQtWidgetInputImageListParameter.cxx
@@ -51,7 +51,7 @@ void QtWidgetInputImageListParameter::DoUpdateGUI()
     std::vector<std::string>::iterator it;
     for (it = fileList.begin(); it != fileList.end(); ++it)
       {
-      m_FileSelectionList[i++]->GetInput()->setText( QString::fromStdString( (*it) ) );
+      m_FileSelectionList[i++]->GetInput()->setText( QString::fromAscii(it->c_str()) );
       }
     }
 }
-- 
GitLab