From: Frederik Gladhorn Date: Mon, 24 Mar 2008 13:44:57 +0000 (+0000) Subject: Fix csv import (bug 159053). X-Git-Tag: v4.0.71~10 X-Git-Url: https://git.rmz.fi/?a=commitdiff_plain;h=5289d84979507a9427b54b5db21c2e649c1364e5;p=libqmvoc.git Fix csv import (bug 159053). svn path=/trunk/KDE/kdeedu/libkdeedu/; revision=789507 --- diff --git a/keduvocdocument/keduvocdocument.cpp b/keduvocdocument/keduvocdocument.cpp index 485ab17..1c386cc 100644 --- a/keduvocdocument/keduvocdocument.cpp +++ b/keduvocdocument/keduvocdocument.cpp @@ -235,11 +235,14 @@ KEduVocDocument::FileType KEduVocDocument::detectFileType( const QString &fileNa int KEduVocDocument::open( const KUrl& url ) { -kDebug() << "open"; + // save csv delimiter to preserve it in case this is a csv document + QString csv = d->m_csvDelimiter; + // clear all other properties d->init(); if ( !url.isEmpty() ) { d->m_url = url; } + d->m_csvDelimiter = csv; bool read = false; QString errorMessage = i18n( "Cannot open file
%1
", url.path() );