Commit 3541f7bf authored by Jan Möbius's avatar Jan Möbius
Browse files

Fixed bug deep in ini file writer for vectors of qstrings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@2919 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 54365bdc
...@@ -12,12 +12,12 @@ ...@@ -12,12 +12,12 @@
// it under the terms of the GNU Lesser General Public License as published by // it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or // the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version. // (at your option) any later version.
// //
// OpenFlipper is distributed in the hope that it will be useful, // OpenFlipper is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of // but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details. // GNU Lesser General Public License for more details.
// //
// You should have received a copy of the GNU Lesser General Public License // You should have received a copy of the GNU Lesser General Public License
// along with OpenFlipper. If not, see <http://www.gnu.org/licenses/>. // along with OpenFlipper. If not, see <http://www.gnu.org/licenses/>.
// //
...@@ -367,8 +367,9 @@ void INIFile::add_entry( const QString & _section, ...@@ -367,8 +367,9 @@ void INIFile::add_entry( const QString & _section,
{ {
QString list; QString list;
std::vector<QString>::const_iterator viter; std::vector<QString>::const_iterator viter;
for(viter = _value.begin();viter!=_value.end();++viter) for(viter = _value.begin();viter!=_value.end();++viter) {
list = *viter + ";"; list += *viter + ";";
}
m_iniData[ _section ][ _key ] = list; m_iniData[ _section ][ _key ] = list;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment