Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/models/ledgermodel.cpp
Context not available. | |||||
396 | if(transactionId != d->m_lastTransactionStored.id()) { | 396 | if(transactionId != d->m_lastTransactionStored.id()) { | ||
---|---|---|---|---|---|
397 | try { | 397 | try { | ||
398 | d->m_lastTransactionStored = MyMoneyFile::instance()->transaction(transactionId); | 398 | d->m_lastTransactionStored = MyMoneyFile::instance()->transaction(transactionId); | ||
399 | } catch(MyMoneyException& e) { | 399 | } catch (const MyMoneyException &) { | ||
400 | d->m_lastTransactionStored = MyMoneyTransaction(); | 400 | d->m_lastTransactionStored = MyMoneyTransaction(); | ||
401 | } | 401 | } | ||
402 | } | 402 | } | ||
Context not available. | |||||
405 | beginInsertRows(QModelIndex(), rowCount(), rowCount()); | 405 | beginInsertRows(QModelIndex(), rowCount(), rowCount()); | ||
406 | d->m_ledgerItems.append(new LedgerTransaction(d->m_lastTransactionStored, split)); | 406 | d->m_ledgerItems.append(new LedgerTransaction(d->m_lastTransactionStored, split)); | ||
407 | endInsertRows(); | 407 | endInsertRows(); | ||
408 | } catch(MyMoneyException& e) { | 408 | } catch (const MyMoneyException &) { | ||
409 | d->m_lastTransactionStored = MyMoneyTransaction(); | 409 | d->m_lastTransactionStored = MyMoneyTransaction(); | ||
410 | } | 410 | } | ||
411 | } | 411 | } | ||
Context not available. |