[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 303173] gallery export busyloop
From:       Wolfgang Breyha <wbreyha () gmx ! net>
Date:       2012-09-17 22:44:20
Message-ID: bug-303173-17878-TcQpnw6zqz () http ! bugs ! kde ! org/
[Download RAW message or body]

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

--- Comment #5 from Wolfgang Breyha <wbreyha@gmx.net> ---
i did some research...

g2 sets ref_num in album.name.x. kipi_plugin currently uses the "x" from
album.name.x as ref_num instead. Don't know if that's correct for g3. 

With g2 this causes the mentioned endless loop because some folders cant be
linked to their parent folders and their is no countermeasure to check for
unlinked folders.

--- gallerytalker.cpp.orig    2012-09-18 00:21:33.581561874 +0200
+++ gallerytalker.cpp    2012-09-18 00:11:53.308646253 +0200
@@ -489,7 +489,10 @@
                 {
                         GAlbum album;
                         album.name    = value;
-                        album.ref_num = key.section('.', 2, 2).toInt();
+                        if (s_using_gallery2)
+                            album.ref_num = value.toInt();
+                        else
+                            album.ref_num = key.section('.', 2, 2).toInt();
                         iter = albumList.insert(iter, album);
                 }
                 else if (key.startsWith(QLatin1String("album.title")))

fixes it at least for g2 on 2.8.0 I'm currently using on F17. I can provide my
fixed .so for i686.fc17 on request until this is fixed upstream.

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic