Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/qif/import/mymoneyqifreader.cpp
Context not available. | |||||
648 | break; | 648 | break; | ||
---|---|---|---|---|---|
649 | } | 649 | } | ||
650 | } catch (const MyMoneyException &e) { | 650 | } catch (const MyMoneyException &e) { | ||
651 | if (e.what() != "USERABORT") { | 651 | if (QString::fromLatin1(e.what()).contains("USERABORT")) { | ||
652 | qDebug() << "Line " << m_linenumber << ": Unhandled error: " << e.what(); | 652 | qDebug() << "Line " << m_linenumber << ": Unhandled error: " << e.what(); | ||
653 | } else { | 653 | } else { | ||
654 | m_userAbort = true; | 654 | m_userAbort = true; | ||
Context not available. | |||||
1008 | // remember which account we created | 1008 | // remember which account we created | ||
1009 | d->st.m_accountId = m_account.id(); | 1009 | d->st.m_accountId = m_account.id(); | ||
1010 | } catch (const MyMoneyException &e) { | 1010 | } catch (const MyMoneyException &e) { | ||
1011 | KMessageBox::detailedError(0, | 1011 | KMessageBox::detailedError(nullptr, | ||
1012 | i18n("Error while creating opening balance transaction"), | 1012 | i18n("Error while creating opening balance transaction"), | ||
1013 | QString("%1(%2):%3").arg(e.file()).arg(e.line()).arg(e.what()), | 1013 | e.what(), | ||
1014 | i18n("File access error")); | 1014 | i18n("File access error")); | ||
1015 | } | 1015 | } | ||
1016 | } | 1016 | } | ||
Context not available. | |||||
1101 | break; | 1101 | break; | ||
1102 | 1102 | | |||
1103 | case KMessageBox::Cancel: | 1103 | case KMessageBox::Cancel: | ||
1104 | throw MYMONEYEXCEPTION("USERABORT"); | 1104 | throw MYMONEYEXCEPTION_CSTRING("USERABORT"); | ||
1105 | break; | 1105 | break; | ||
1106 | } | 1106 | } | ||
1107 | } | 1107 | } | ||
Context not available. | |||||
1329 | break; | 1329 | break; | ||
1330 | 1330 | | |||
1331 | case KMessageBox::Cancel: | 1331 | case KMessageBox::Cancel: | ||
1332 | throw MYMONEYEXCEPTION("USERABORT"); | 1332 | throw MYMONEYEXCEPTION_CSTRING("USERABORT"); | ||
1333 | break; | 1333 | break; | ||
1334 | } | 1334 | } | ||
1335 | } | 1335 | } | ||
Context not available. |