Version: 0.8.0-beta2 (using KDE KDE 3.4.2) Installed from: Compiled From Sources OS: Linux For menu coherence, is it possible to apply the fixed report http://bugs.kde.org/show_bug.cgi?id=111798 to the image contextual menu in the DigiKam Image Editor (where "remove tags" remains always enabled) ?
SVN commit 473489 by toma: disable "remove tag" when no tags are available. BUG: 113913 M +7 -2 imagewindow.cpp --- trunk/extragear/graphics/digikam/utilities/imageeditor/imagewindow.cpp #473488:473489 @@ -134,7 +134,7 @@ } } - m_contextMenu = dynamic_cast<QPopupMenu*>(factory()->container("RMBMenu", this)); + m_contextMenu = dynamic_cast<QPopupMenu*>(factory()->container("RMBMenu", this)); // -- Some Accels not available from actions ------------- @@ -743,13 +743,18 @@ TagsPopupMenu::REMOVE); separatorID = m_contextMenu->insertSeparator(); + m_contextMenu->insertItem(i18n("Assign Tag"), assignTagsMenu); - m_contextMenu->insertItem(i18n("Remove Tag"), removeTagsMenu); + int i = m_contextMenu->insertItem(i18n("Remove Tag"), removeTagsMenu); connect(assignTagsMenu, SIGNAL(signalTagActivated(int)), SLOT(slotAssignTag(int))); connect(removeTagsMenu, SIGNAL(signalTagActivated(int)), SLOT(slotRemoveTag(int))); + + AlbumDB* db = AlbumManager::instance()->albumDB(); + if (!db->hasTags( idList )) + m_contextMenu->setItemEnabled(i,false); } }
Tom, thank you for the fix.
Thank you for your excellent reports! Keep up the good work.
Yes, indeed!!
and me, i propose to add Tung like digiKam bug reporter in about dialog. Are you agree ? Gilles
Yes, I fully agree. Welcome to the team. Index: digikam/main.cpp =================================================================== --- digikam/main.cpp (revision 471774) +++ digikam/main.cpp (working copy) @@ -191,6 +191,12 @@ "yves dot chaufour at wanadoo.fr", 0); + aboutData.addCredit ( "Tung Nguyen", + I18N_NOOP("Bug reports and Feedback"), + "ntung at free.fr", + 0); + + KCmdLineArgs::init( argc, argv, &aboutData ); KCmdLineArgs::addCmdLineOptions( options );
Gilles, Joern, Tom, once again thank you :-)