Summary: | Folder Menu not updated after enabling Expiration for a Folder | ||
---|---|---|---|
Product: | [Unmaintained] kmail | Reporter: | Unknown <null> |
Component: | keys and menus | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Unknown
2004-11-08 16:09:57 UTC
Does this fix it? --- kmmainwidget.cpp 5 Nov 2004 08:54:53 -0000 1.281.2.1 +++ kmmainwidget.cpp 8 Nov 2004 17:12:18 -0000 @@ -891,6 +891,7 @@ void KMMainWidget::slotModifyFolder() KMFolderTreeItem *item = static_cast<KMFolderTreeItem*>( mFolderTree->currentItem() ); if ( item ) item->properties(); + updateFolderMenu(); } //----------------------------------------------------------------------------- CVS commit by faure: Fixed "Folder Menu not updated after enabling Expiration for a Folder", approved by Ingo. BUG: 92918 M +3 -7 kmfoldertree.cpp 1.313.2.7 M +13 -1 kmmainwidget.cpp 1.250.2.12 M +2 -0 kmmainwidget.h 1.70.2.4 --- kdepim/kmail/kmfoldertree.cpp #1.313.2.6:1.313.2.7 @@ -242,11 +242,7 @@ void KMFolderTreeItem::properties() return; - KMFolderDialog *props; - - props = new KMFolderDialog( mFolder, mFolder->parent(), static_cast<KMFolderTree *>( listView() ), - i18n("Properties of Folder %1").arg( mFolder->label() ) ); - props->exec(); - //Nothing here the above exec() may actually delete this KMFolderTreeItem - return; + KMFolderTree* tree = static_cast<KMFolderTree*>( listView() ); + tree->mainWidget()->modifyFolder( this ); + //Nothing here the above may actually delete this KMFolderTreeItem } --- kdepim/kmail/kmmainwidget.cpp #1.250.2.11:1.250.2.12 @@ -888,5 +888,17 @@ void KMMainWidget::slotModifyFolder() KMFolderTreeItem *item = static_cast<KMFolderTreeItem*>( mFolderTree->currentItem() ); if ( item ) - item->properties(); + modifyFolder( item ); +} + +//----------------------------------------------------------------------------- +void KMMainWidget::modifyFolder( KMFolderTreeItem* folderItem ) +{ + KMFolder* folder = folderItem->folder(); + KMFolderTree* folderTree = static_cast<KMFolderTree *>( folderItem->listView() ); + KMFolderDialog *props = new KMFolderDialog( folder, folder->parent(), folderTree, + i18n("Properties of Folder %1").arg( folder->label() ) ); + props->exec(); + delete props; + updateFolderMenu(); } --- kdepim/kmail/kmmainwidget.h #1.70.2.3:1.70.2.4 @@ -143,4 +143,6 @@ public: KMSystemTray *systray() const; + void modifyFolder( KMFolderTreeItem* folderItem ); + public slots: void slotMoveMsgToFolder( KMFolder *dest); |