Bug 285880 - Cumulative amount of main categories don't appear
Summary: Cumulative amount of main categories don't appear
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Stephane MANKOWSKI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-06 10:16 UTC by maxime.haselbauer
Modified: 2011-11-06 12:23 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
View of the Categorie Tab that shows the problem (63.28 KB, image/png)
2011-11-06 10:16 UTC, maxime.haselbauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description maxime.haselbauer 2011-11-06 10:16:44 UTC
Created attachment 65286 [details]
View of the Categorie Tab that shows the problem

Version:           unspecified (using KDE 4.7.2) 
OS:                Linux

Using skrooge 1.0.0
In the categories Tab, all the main categories don't show their nb of operations as well as cumulative amount 
Surpringsingly when it's a sub category, information are shown
(see attachement)

Reproducible: Always

Steps to Reproduce:
This bug happens all the time for me


Expected Results:  
The software should show information such as cumultative amount and number of operations even for categories that are main categories or that don't have sub categories

I am using the wubi version of Kubuntu  11.04 natty narwhal
Comment 1 Stephane MANKOWSKI 2011-11-06 12:23:56 UTC
Corrected:

M  +1    -0    CHANGELOG
M  +1    -2    skgbasegui/skgtreeview.cpp

http://commits.kde.org/skrooge/916d409278f9a84382f5bb193570fd9158f3528e

diff --git a/CHANGELOG b/CHANGELOG
index c8e8d18..f78a405 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -8,6 +8,7 @@ skrooge (1.1.0)
   *Correction bug 284752: Skrooge does not look for Grantlee at build time 
   *Correction bug 284843: OFX import does not work on UTF-8 encoded files
   *Correction bug 285289: Misspell found: reconcilation instead of reconciliation
+  *Correction bug 285880: Cumulative amount of main categories don't appear 
   *Correction: Better colors in "5 main variations" widget for dashboard
   *Correction: Installation of grantlee_skroogefilters.so in only one place and not hardcoded
   *Correction: No more error when importing skg file with payees
diff --git a/skgbasegui/skgtreeview.cpp b/skgbasegui/skgtreeview.cpp
index 9170d5b..8cb9ff0 100644
--- a/skgbasegui/skgtreeview.cpp
+++ b/skgbasegui/skgtreeview.cpp
@@ -458,10 +458,9 @@ void SKGTreeView::setupHeaderMenu()
 
             //Span first column
             if(m_proxyModel) {
-                bool treeMode = !m_model->getParentChildAttribute().isEmpty();
                 int grouped_rows_count = m_proxyModel->rowCount(rootIndex());
                 for(int row = 0 ; row < grouped_rows_count ; row++) {
-                    setFirstColumnSpanned(row, rootIndex(), treeMode || !m_groupby.isEmpty());
+                    setFirstColumnSpanned(row, rootIndex(), !m_groupby.isEmpty());
                 }
             }
         }