Summary: | delete tag should be disabled when no tag is assigned | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Tom Albers <toma> |
Component: | Tags-Engine | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles |
Priority: | NOR | ||
Version: | 0.7.0 | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 7.6.0 | |
Sentry Crash Report: |
Description
Tom Albers
2004-09-12 16:16:00 UTC
CVS commit by pahlibar: context specific enabling/disabling of album/tag specific actions in the menubar CCMAIL: 89358-done@bugs.kde.org M +8 -0 digikamapp.cpp 1.55 M +1 -0 digikamapp.h 1.21 M +11 -1 digikamview.cpp 1.17 M +1 -0 digikamview.h 1.11 --- kdeextragear-3/digikam/digikam/digikamapp.cpp #1.54:1.55 @@ -153,4 +153,6 @@ void DigikamApp::setupView() connect(mView, SIGNAL(signal_albumSelected(bool)), this, SLOT(slot_albumSelected(bool))); + connect(mView, SIGNAL(signal_tagSelected(bool)), + this, SLOT(slot_tagSelected(bool))); connect(mView, SIGNAL(signal_imageSelected(bool)), @@ -480,4 +482,10 @@ void DigikamApp::slot_albumSelected(bool } +void DigikamApp::slot_tagSelected(bool val) +{ + mDeleteTagAction->setEnabled(val); + mEditTagAction->setEnabled(val); +} + void DigikamApp::slot_imageSelected(bool val) { --- kdeextragear-3/digikam/digikam/digikamapp.h #1.20:1.21 @@ -175,4 +175,5 @@ private slots: void slot_albumSelected(bool val); + void slot_tagSelected(bool val); void slot_imageSelected(bool val); void slot_exit(); --- kdeextragear-3/digikam/digikam/digikamview.cpp #1.16:1.17 @@ -169,8 +169,18 @@ void DigikamView::slot_albumSelected(Alb mIconView->setAlbum(0); emit signal_albumSelected(false); + emit signal_tagSelected(false); return; } + if (album->type() == Album::PHYSICAL) + { emit signal_albumSelected(true); + emit signal_tagSelected(false); + } + else if (album->type() == Album::TAG) + { + emit signal_albumSelected(false); + emit signal_tagSelected(true); + } mIconView->setAlbum(album); } --- kdeextragear-3/digikam/digikam/digikamview.h #1.10:1.11 @@ -115,4 +115,5 @@ signals: void signal_albumSelected(bool val); + void signal_tagSelected(bool val); void signal_imageSelected(bool val); }; |