Commit 3f817bbf authored by Waqar Ahmed's avatar Waqar Ahmed
Browse files

Make sure we only have one button for 'Enable Indexing'

parent e85c26fc
......@@ -199,6 +199,9 @@ void KateProjectInfoViewIndex::enableWidgets(bool valid)
m_messageWidget->removeAction(actions.first());
}
} else if (!valid) {
if (!m_messageWidget->text().isEmpty()) {
return;
}
m_messageWidget->setText(i18n("Indexing is not enabled"));
auto enableIndexing = new QAction(i18n("Enable indexing"), m_messageWidget);
connect(enableIndexing, &QAction::triggered, m_messageWidget, [this]() {
......
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