Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 23c2e3f6 authored by Stephane Mankowski's avatar Stephane Mankowski

Astyle

parent fd0422b4
......@@ -343,7 +343,7 @@ void SKGAccountBoardWidget::dataModified(const QString& iTableName, int iIdTrans
bool closed = (r.at(4) == QStringLiteral("Y"));
if (type != currentType) {
if (!currentType.isEmpty() && nbAdded>0) {
if (!currentType.isEmpty() && nbAdded > 0) {
html += "<tr><td><b>" % SKGServices::stringToHtml(i18nc("the numerical total of a sum of values", "Total of %1", currentType)) % "</b></td>"
"<td align=\"right\"><b>" % doc->formatMoney(sumTypeV1, primary) % "</b></td></tr>";
sumTypeV1 = 0;
......
......@@ -338,7 +338,7 @@ QVariantList SKGReportBank::getAccountTable()
QString type = account.getAttribute(QStringLiteral("t_TYPENLS"));
bool closed = account.isClosed();
if (type != currentType) {
if (!currentType.isEmpty() && nbAdded>0) {
if (!currentType.isEmpty() && nbAdded > 0) {
table.push_back(QVariantList() << true << i18nc("Noun", "Total of %1", currentType) << sumTypeV1 << sumTypeV2 <<
(100.0 * (sumTypeV2 - sumTypeV1) / qAbs(sumTypeV1)) << sumTypeV3 << sumTypeV2
<< (100.0 * (sumTypeV2 - sumTypeV3) / qAbs(sumTypeV3))
......
......@@ -2603,7 +2603,9 @@ void SKGMainPanel::fillWithDistinctValue(
kcmb->clear();
kcmb->addItems(list);
if(kcmb->isEditable()) kcmb->setCompleter(comp);
if (kcmb->isEditable()) {
kcmb->setCompleter(comp);
}
} else {
auto* kline = qobject_cast<QLineEdit*> (w);
if (kline != nullptr) {
......
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