[digikam] [Bug 359088] New: With "Show a count of items in Tree Views" Trash always shows count of 0

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 359088] New: With "Show a count of items in Tree Views" Trash always shows count of 0

bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=359088

            Bug ID: 359088
           Summary: With "Show a count of items in Tree Views" Trash
                    always shows count of 0
           Product: digikam
           Version: 5.0.0
          Platform: Ubuntu Packages
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Albums View
          Assignee: [hidden email]
          Reporter: [hidden email]

With "Show a count of items in Tree Views" Trash shows count of 0 instead of
numer of items in trash.

Reproducible: Always

Steps to Reproduce:
1. "Show a count of items in Tree Views"
2. Compare the numer of items shown in tree view with actual trash contents


Actual Results:  
Tree view always shows 0

Expected Results:  
Numer of items in trash

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 359088] With "Show a count of items in Tree Views" Trash always shows count of 0

bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=359088

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |CONFIRMED
                 CC|                            |[hidden email],
                   |                            |mohammed.ahmed.anwer@gmail.
                   |                            |com

--- Comment #1 from [hidden email] ---
Right i confirm the bug about the trash tree-view...

Mohamed, if you can take a look please...

Gilles Caulier

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 359088] With "Show a count of items in Tree Views" Trash always shows count of 0

bugzilla_noreply
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=359088

Maik Qualmann <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]

--- Comment #2 from Maik Qualmann <[hidden email]> ---
Created attachment 97072
  --> https://bugs.kde.org/attachment.cgi?id=97072&action=edit
trashItemsCount.patch

A first idea for a solution. The Trash album is virtual. The number of items
can not be retrieved from the DB. Maybe has Mohamed a better idea.

Maik

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 359088] With "Show a count of items in Tree Views" Trash always shows count of 0 [patch]

bugzilla_noreply
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=359088

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|With "Show a count of items |With "Show a count of items
                   |in Tree Views" Trash always |in Tree Views" Trash always
                   |shows count of 0            |shows count of 0 [patch]

--- Comment #3 from [hidden email] ---
Tested : patch is fine for me. It's better than nothing.

Mohamed ?

Gilles

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 359088] With "Show a count of items in Tree Views" Trash always shows count of 0 [patch]

bugzilla_noreply
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=359088

--- Comment #4 from Mohamed <[hidden email]> ---
I was intending to add a text file inside ".dtrash" folder containing the
number of deleted files and some other info, and It will be much faster,

But this patch will be good for the moment, I recommend applying it.

Sorry for late response, I am still working on some projects related to
college.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 359088] With "Show a count of items in Tree Views" Trash always shows count of 0 [patch]

bugzilla_noreply
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=359088

Maik Qualmann <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
      Latest Commit|                            |http://commits.kde.org/digi
                   |                            |kam/e69fd26625e9ad29abca4dd
                   |                            |68d7f0d044965ae6a
   Version Fixed In|                            |5.0.0
             Status|CONFIRMED                   |RESOLVED

--- Comment #5 from Maik Qualmann <[hidden email]> ---
Git commit e69fd26625e9ad29abca4dd68d7f0d044965ae6a by Maik Qualmann.
Committed on 08/02/2016 at 18:58.
Pushed by mqualmann into branch 'master'.

workaround for Trash items count always shows 0
FIXED-IN: 5.0.0

M  +2    -1    NEWS
M  +20   -3    libs/models/abstractalbummodel.cpp

http://commits.kde.org/digikam/e69fd26625e9ad29abca4dd68d7f0d044965ae6a

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 359088] With "Show a count of items in Tree Views" Trash always shows count of 0 [patch]

bugzilla_noreply
In reply to this post by bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=359088

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|AlbumsView                  |AlbumsView-Tree

--
You are receiving this mail because:
You are the assignee for the bug.