Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/kequitypriceupdatedlg.cpp
Context not available. | |||||
431 | } | 431 | } | ||
---|---|---|---|---|---|
432 | ft.commit(); | 432 | ft.commit(); | ||
433 | 433 | | |||
434 | } catch (const MyMoneyException &) { | 434 | } catch (const std::exception &) { | ||
435 | qDebug("Unable to add price information for %s", qPrintable(name)); | 435 | qDebug("Unable to add price information for %s", qPrintable(name)); | ||
436 | } | 436 | } | ||
437 | } | 437 | } | ||
Context not available. | |||||
548 | // Re-commit the security | 548 | // Re-commit the security | ||
549 | MyMoneyFile::instance()->modifySecurity(security); | 549 | MyMoneyFile::instance()->modifySecurity(security); | ||
550 | ft.commit(); | 550 | ft.commit(); | ||
551 | } catch (const MyMoneyException &e) { | 551 | } catch (const std::exception &e) { | ||
552 | KMessageBox::error(this, QString("<qt>") + i18n("Cannot update security <b>%1</b>: %2", _webID, e.what()) + QString("</qt>"), i18n("Price Update Failed")); | 552 | KMessageBox::error(this, QString("<qt>") + i18n("Cannot update security <b>%1</b>: %2", _webID, e.what()) + QString("</qt>"), i18n("Price Update Failed")); | ||
553 | } | 553 | } | ||
554 | } | 554 | } | ||
Context not available. | |||||
597 | try { | 597 | try { | ||
598 | toCurrency = MyMoneyFile::instance()->security(_kmmID); | 598 | toCurrency = MyMoneyFile::instance()->security(_kmmID); | ||
599 | fromCurrency = MyMoneyFile::instance()->security(toCurrency.tradingCurrency()); | 599 | fromCurrency = MyMoneyFile::instance()->security(toCurrency.tradingCurrency()); | ||
600 | } catch (const MyMoneyException &) { | 600 | } catch (const std::exception &) { | ||
601 | fromCurrency = toCurrency = MyMoneySecurity(); | 601 | fromCurrency = toCurrency = MyMoneySecurity(); | ||
602 | } | 602 | } | ||
603 | 603 | | |||
Context not available. | |||||
607 | try { | 607 | try { | ||
608 | fromCurrency = MyMoneyFile::instance()->security(splitrx.cap(2).toUtf8()); | 608 | fromCurrency = MyMoneyFile::instance()->security(splitrx.cap(2).toUtf8()); | ||
609 | toCurrency = MyMoneyFile::instance()->security(splitrx.cap(1).toUtf8()); | 609 | toCurrency = MyMoneyFile::instance()->security(splitrx.cap(1).toUtf8()); | ||
610 | } catch (const MyMoneyException &) { | 610 | } catch (const std::exception &) { | ||
611 | fromCurrency = toCurrency = MyMoneySecurity(); | 611 | fromCurrency = toCurrency = MyMoneySecurity(); | ||
612 | } | 612 | } | ||
613 | } | 613 | } | ||
Context not available. | |||||
745 | try { | 745 | try { | ||
746 | toCurrency = MyMoneyFile::instance()->security(id); | 746 | toCurrency = MyMoneyFile::instance()->security(id); | ||
747 | fromCurrency = MyMoneyFile::instance()->security(toCurrency.tradingCurrency()); | 747 | fromCurrency = MyMoneyFile::instance()->security(toCurrency.tradingCurrency()); | ||
748 | } catch (const MyMoneyException &) { | 748 | } catch (const std::exception &) { | ||
749 | fromCurrency = toCurrency = MyMoneySecurity(); | 749 | fromCurrency = toCurrency = MyMoneySecurity(); | ||
750 | } | 750 | } | ||
751 | 751 | | |||
Context not available. | |||||
755 | try { | 755 | try { | ||
756 | fromCurrency = MyMoneyFile::instance()->security(splitrx.cap(2).toUtf8()); | 756 | fromCurrency = MyMoneyFile::instance()->security(splitrx.cap(2).toUtf8()); | ||
757 | toCurrency = MyMoneyFile::instance()->security(splitrx.cap(1).toUtf8()); | 757 | toCurrency = MyMoneyFile::instance()->security(splitrx.cap(1).toUtf8()); | ||
758 | } catch (const MyMoneyException &) { | 758 | } catch (const std::exception &) { | ||
759 | fromCurrency = toCurrency = MyMoneySecurity(); | 759 | fromCurrency = toCurrency = MyMoneySecurity(); | ||
760 | } | 760 | } | ||
761 | } | 761 | } | ||
Context not available. |