Commit c154466a authored by Laurent Montel's avatar Laurent Montel 😁

Allow to remove item from undo stack when we delete them

svn path=/trunk/KDE/kdepim/kmail/; revision=1158189
parent 08f210ef
......@@ -209,6 +209,7 @@ KMKernel::KMKernel (QObject *parent, const char *name) :
this, SLOT( slotProgressItemCompletedOrCanceled( KPIM::ProgressItem* ) ) );
connect( KPIM::ProgressManager::instance(), SIGNAL( progressItemCanceled( KPIM::ProgressItem * ) ),
this, SLOT( slotProgressItemCompletedOrCanceled( KPIM::ProgressItem* ) ) );
connect( monitor(), SIGNAL( itemRemoved( const Akonadi::Item &) ), the_undoStack, SLOT( msgDestroyed( const Akonadi::Item& ) ) );
}
KMKernel::~KMKernel ()
......
......@@ -53,8 +53,11 @@ public:
void undo();
void pushSingleAction(const Akonadi::Item &item, const Akonadi::Collection&, const Akonadi::Collection& destFolder);
void msgDestroyed( const Akonadi::Item &msg);
void folderDestroyed( const Akonadi::Collection &folder);
public slots:
void msgDestroyed( const Akonadi::Item &msg);
protected:
QList<UndoInfo*> mStack;
int mSize;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment