Commit e8ac3f24 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Clean up code

parent 750892a0
Pipeline #34413 failed with stage
in 82 minutes and 12 seconds
......@@ -42,9 +42,9 @@ TagActionManager::TagActionManager(QObject *parent, KActionCollection *actionCol
mMessageActions->messageStatusMenu()->menu()->addSeparator();
TagMonitorManager *tagMonitorManager = TagMonitorManager::self();
connect(tagMonitorManager, &TagMonitorManager::tagAdded, this, &TagActionManager::onTagAdded);
connect(tagMonitorManager, &TagMonitorManager::tagRemoved, this, &TagActionManager::onTagRemoved);
connect(tagMonitorManager, &TagMonitorManager::tagChanged, this, &TagActionManager::onTagChanged);
connect(tagMonitorManager, &TagMonitorManager::tagAdded, this, &TagActionManager::fillTagList);
connect(tagMonitorManager, &TagMonitorManager::tagRemoved, this, &TagActionManager::fillTagList);
connect(tagMonitorManager, &TagMonitorManager::tagChanged, this, &TagActionManager::fillTagList);
connect(tagMonitorManager, &TagMonitorManager::fetchTagDone, this, &TagActionManager::createActions);
}
......@@ -230,21 +230,6 @@ void TagActionManager::updateActionStates(int numberOfSelectedMessages, const Ak
}
}
void TagActionManager::onTagAdded()
{
fillTagList();
}
void TagActionManager::onTagRemoved()
{
fillTagList();
}
void TagActionManager::onTagChanged()
{
fillTagList();
}
void TagActionManager::fillTagList()
{
const QList<qint64> checked = checkedTags();
......
......@@ -104,9 +104,6 @@ private:
Q_DISABLE_COPY(TagActionManager)
void newTagActionClicked();
void onSignalMapped(const QString &tag);
void onTagAdded();
void onTagRemoved();
void onTagChanged();
void fillTagList();
void createTagAction(const MailCommon::Tag::Ptr &tag, bool addToMenu);
......
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