[Digikam-devel] [Bug 149469] excessive trash confirmation dialogs after album is deleted
Marcel Wiesweg
marcel.wiesweg at gmx.de
Sun Sep 2 14:20:57 BST 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=149469
------- Additional Comments From marcel.wiesweg gmx de 2007-09-02 15:20 -------
SVN commit 707625 by mwiesweg:
Backport fix for 149469
CCBUGS: 149469
M +6 -1 deletedialog.cpp
M +1 -0 deletedialog.h
--- branches/extragear/kde3/graphics/digikam/libs/dialogs/deletedialog.cpp #707624:707625
@ -188,6 +188,7 @
true // use separator between buttons and the main widget
),
m_saveShouldDeleteUserPreference(true),
+ m_saveDoNotShowAgain(false),
m_trashGuiItem(i18n("&Send to Trash"), "trashcan_full")
{
m_widget = new DeleteWidget(this, "delete_dialog_widget");
@ -233,7 +234,10 @
{
settings->setUseTrash(!shouldDelete());
}
- settings->setShowTrashDeleteDialog(!m_widget->ddDoNotShowAgain->isChecked());
+ if (m_saveDoNotShowAgain)
+ {
+ settings->setShowTrashDeleteDialog(!m_widget->ddDoNotShowAgain->isChecked());
+ }
settings->saveSettings();
@ -256,6 +260,7 @
// access the widget directly, signals will be fired to DeleteDialog and DeleteWidget
m_widget->ddShouldDelete->setChecked(false);
m_widget->ddCheckBoxStack->raiseWidget(m_widget->ddDoNotShowAgain);
+ m_saveDoNotShowAgain = true;
break;
case DeleteDialogMode::NoChoiceDeletePermanently:
m_widget->ddShouldDelete->setChecked(true);
--- branches/extragear/kde3/graphics/digikam/libs/dialogs/deletedialog.h #707624:707625
@ -125,6 +125,7 @
private:
bool m_saveShouldDeleteUserPreference;
+ bool m_saveDoNotShowAgain;
KGuiItem m_trashGuiItem;
More information about the Digikam-devel
mailing list