Commit 6375a730 authored by Thomas Baumgart's avatar Thomas Baumgart
Browse files

Catch exception returned by accountByName()

BUG: 391305
parent b3ea7ca3
......@@ -649,7 +649,11 @@ MyMoneyAccount MyMoneyFile::subAccountByName(const MyMoneyAccount& acc, const QS
MyMoneyAccount MyMoneyFile::accountByName(const QString& name) const
return d->m_storage->accountByName(name);
try {
return d->m_storage->accountByName(name);
} catch(const MyMoneyException&) {
return MyMoneyAccount();
void MyMoneyFile::removeTransaction(const MyMoneyTransaction& transaction)
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