Inform when we have an error to delete a tag

wilder-work
Montel Laurent 12 years ago
parent e2be148c99
commit 87de63e24a
  1. 10
      configuredialog/configureappearancepage.cpp
  2. 1
      configuredialog/configureappearancepage.h

@ -1278,7 +1278,8 @@ void AppearancePage::MessageTagTab::slotRemoveTag()
TagListWidgetItem *tagItem = static_cast<TagListWidgetItem*>( item );
MailCommon::Tag::Ptr tmp_desc = tagItem->kmailTag();
if ( tmp_desc->tag().isValid() ) {
new Akonadi::TagDeleteJob(tmp_desc->tag());
Akonadi::TagDeleteJob *job = new Akonadi::TagDeleteJob(tmp_desc->tag());
connect(job, SIGNAL(result(KJob*)), this, SLOT(slotDeleteTagJob(KJob*)));
} else {
kWarning() << "Can't remove tag with invalid akonadi tag";
}
@ -1299,6 +1300,13 @@ void AppearancePage::MessageTagTab::slotRemoveTag()
}
}
void AppearancePage::MessageTagTab::slotDeleteTagJob(KJob* job)
{
if (job->error()) {
kWarning() << "Failed to delete tag " << job->errorString();
}
}
void AppearancePage::MessageTagTab::slotNameLineTextChanged( const QString
&aText )
{

@ -260,6 +260,7 @@ private slots:
const QModelIndex &, int destinationRow );
void slotTagsFetched(KJob *job);
void slotDeleteTagJob(KJob *job);
private:
void doLoadFromGlobalSettings();
void swapTagsInListBox( const int first, const int second );

Loading…
Cancel
Save