[Kde-imaging] [Bug 303173] gallery export busyloop

Wolfgang Breyha wbreyha at gmx.net
Mon Sep 17 22:44:20 UTC 2012


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

--- Comment #5 from Wolfgang Breyha <wbreyha at 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 the assignee for the bug.


More information about the Kde-imaging mailing list