[Digikam-devel] [Bug 307467] Missing slide show button in digiKam 3.0.0 beta1
Gilles Caulier
caulier.gilles at gmail.com
Tue Oct 23 23:31:05 BST 2012
https://bugs.kde.org/show_bug.cgi?id=307467
--- Comment #13 from Gilles Caulier <caulier.gilles at gmail.com> ---
Git commit 2481d371b619ac6e9cb3dfd7c64a6d64f5c96205 by Victor Dodon.
Committed on 24/10/2012 at 00:21.
Pushed by dodon into branch 'master'.
Add advancedslideshow action to the Slideshow menu. BUGS: 307467 FIXED-IN:
3.0.0
M +18 -0 utilities/kipiiface/kipipluginloader.cpp
http://commits.kde.org/digikam/2481d371b619ac6e9cb3dfd7c64a6d64f5c96205
diff --git a/utilities/kipiiface/kipipluginloader.cpp
b/utilities/kipiiface/kipipluginloader.cpp
index d6ca604..9c965d2 100644
--- a/utilities/kipiiface/kipipluginloader.cpp
+++ b/utilities/kipiiface/kipipluginloader.cpp
@@ -230,6 +230,13 @@ QList<QAction*>
KipiPluginLoader::kipiActionsByCategory(Category cat) const
void KipiPluginLoader::slotKipiPluginPlug()
{
+ // Ugly hack. Remove "advancedslideshow" action from Slideshow menu
+ foreach(QAction* action, d->app->slideShowMenu()->menu()->actions())
+ {
+ if (action->objectName() == "advancedslideshow")
+ d->app->slideShowMenu()->removeAction(action);
+ }
+
// Delete all action categories
for (QMap<int, KActionCategory*>::iterator it =
d->kipiCategoryMap.begin();
it != d->kipiCategoryMap.end();
@@ -315,6 +322,17 @@ void KipiPluginLoader::slotKipiPluginPlug()
continue;
}
+ // Ugly hack. Remove "advancedslideshow action from AdvancedSlideshow
plugin
+ // actionCollection() and add it to the Slideshow menu
+ if (plugin->objectName() == QString("AdvancedSlideshow"))
+ {
+ QAction* action =
plugin->actionCollection()->action("advancedslideshow");
+ if (action)
+ {
+ QAction* _action =
plugin->actionCollection()->takeAction(action);
+ d->app->slideShowMenu()->addAction(_action);
+ }
+ }
d->app->guiFactory()->addClient(plugin);
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Digikam-devel
mailing list