Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/kmymoney.cpp
Show First 20 Lines • Show All 3156 Lines • ▼ Show 20 Line(s) | 3155 | if (d->m_storageInfo.isOpened) { | |||
---|---|---|---|---|---|
3157 | 3157 | | |||
3158 | // remove the statement files | 3158 | // remove the statement files | ||
3159 | d->unlinkStatementXML(); | 3159 | d->unlinkStatementXML(); | ||
3160 | 3160 | | |||
3161 | QMap<QString, KMyMoneyPlugin::ImporterPlugin*>::const_iterator it_plugin = pPlugins.importer.constBegin(); | 3161 | QMap<QString, KMyMoneyPlugin::ImporterPlugin*>::const_iterator it_plugin = pPlugins.importer.constBegin(); | ||
3162 | while (it_plugin != pPlugins.importer.constEnd()) { | 3162 | while (it_plugin != pPlugins.importer.constEnd()) { | ||
3163 | if ((*it_plugin)->isMyFormat(url)) { | 3163 | if ((*it_plugin)->isMyFormat(url)) { | ||
3164 | QList<MyMoneyStatement> statements; | 3164 | QList<MyMoneyStatement> statements; | ||
3165 | if (!(*it_plugin)->import(url)) { | 3165 | if (!(*it_plugin)->import(url) && !(*it_plugin)->lastError().isEmpty()) { | ||
3166 | KMessageBox::error(this, i18n("Unable to import %1 using %2 plugin. The plugin returned the following error: %3", url, (*it_plugin)->formatName(), (*it_plugin)->lastError()), i18n("Importing error")); | 3166 | KMessageBox::error(this, i18n("Unable to import %1 using %2 plugin. The plugin returned the following error: %3", url, (*it_plugin)->formatName(), (*it_plugin)->lastError()), i18n("Importing error")); | ||
3167 | } | 3167 | } | ||
3168 | 3168 | | |||
3169 | break; | 3169 | break; | ||
3170 | } | 3170 | } | ||
3171 | ++it_plugin; | 3171 | ++it_plugin; | ||
3172 | } | 3172 | } | ||
3173 | 3173 | | |||
▲ Show 20 Lines • Show All 512 Lines • Show Last 20 Lines |