Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/ktagsview.cpp
Context not available. | |||||
158 | ft.commit(); | 158 | ft.commit(); | ||
---|---|---|---|---|---|
159 | 159 | | |||
160 | } catch (const MyMoneyException &e) { | 160 | } catch (const MyMoneyException &e) { | ||
161 | KMessageBox::detailedSorry(this, i18n("Unable to modify tag"), | 161 | KMessageBox::detailedSorry(this, i18n("Unable to modify tag"), e.what()); | ||
162 | i18n("%1 thrown in %2:%3", e.what(), e.file(), e.line())); | | |||
163 | } | 162 | } | ||
164 | } else { | 163 | } else { | ||
165 | ta->setText(new_name); | 164 | ta->setText(new_name); | ||
Context not available. | |||||
265 | showTransactions(); | 264 | showTransactions(); | ||
266 | 265 | | |||
267 | } catch (const MyMoneyException &e) { | 266 | } catch (const MyMoneyException &e) { | ||
268 | qDebug("exception during display of tag: %s at %s:%ld", qPrintable(e.what()), qPrintable(e.file()), e.line()); | 267 | qDebug("exception during display of tag: %s", qPrintable(e.what())); | ||
269 | d->ui->m_register->clear(); | 268 | d->ui->m_register->clear(); | ||
270 | d->m_tag = MyMoneyTag(); | 269 | d->m_tag = MyMoneyTag(); | ||
271 | } | 270 | } | ||
Context not available. | |||||
393 | ft.commit(); | 392 | ft.commit(); | ||
394 | 393 | | |||
395 | } catch (const MyMoneyException &e) { | 394 | } catch (const MyMoneyException &e) { | ||
396 | KMessageBox::detailedSorry(this, i18n("Unable to modify tag"), | 395 | KMessageBox::detailedSorry(this, i18n("Unable to modify tag"), e.what()); | ||
397 | i18n("%1 thrown in %2:%3", e.what(), e.file(), e.line())); | | |||
398 | } | 396 | } | ||
399 | } | 397 | } | ||
400 | } | 398 | } | ||
Context not available. | |||||
735 | } // for - Schedules | 733 | } // for - Schedules | ||
736 | 734 | | |||
737 | } catch (const MyMoneyException &e) { | 735 | } catch (const MyMoneyException &e) { | ||
738 | KMessageBox::detailedSorry(this, i18n("Unable to reassign tag of transaction/split"), | 736 | KMessageBox::detailedSorry(this, i18n("Unable to reassign tag of transaction/split"), e.what()); | ||
739 | i18n("%1 thrown in %2:%3", e.what(), e.file(), e.line())); | | |||
740 | } | 737 | } | ||
741 | } // if !translist.isEmpty() | 738 | } // if !translist.isEmpty() | ||
742 | 739 | | |||
Context not available. | |||||
752 | slotSelectTags(QList<MyMoneyTag>()); | 749 | slotSelectTags(QList<MyMoneyTag>()); | ||
753 | 750 | | |||
754 | } catch (const MyMoneyException &e) { | 751 | } catch (const MyMoneyException &e) { | ||
755 | KMessageBox::detailedSorry(this, i18n("Unable to remove tag(s)"), | 752 | KMessageBox::detailedSorry(this, i18n("Unable to remove tag(s)"), e.what()); | ||
756 | i18n("%1 thrown in %2:%3", e.what(), e.file(), e.line())); | | |||
757 | } | 753 | } | ||
758 | } | 754 | } | ||
Context not available. |