bool OfxImporterPlugin::updateAccount(const MyMoneyAccount& acc, bool moreAccounts) { Q_UNUSED(moreAccounts); qDebug("OfxImporterPlugin::updateAccount"); try { if (!acc.id().isEmpty()) { // Save the value of preferName to be used by ofxTransactionCallback d->m_preferName = static_cast<OfxImporterPlugin::Private::NamePreference>(acc.onlineBankingSettings().value("kmmofx-preferName").toInt()); QPointer<KOfxDirectConnectDlg> dlg = new KOfxDirectConnectDlg(acc); connect(dlg, SIGNAL(statementReady(QString)), this, SLOT(slotImportFile(QString))); if (dlg->init()) dlg->exec(); delete dlg; } } catch (const MyMoneyException &e) { KMessageBox::information(0 , i18n("Error connecting to bank: %1", e.what())); } return false; }