Commit 62ba535c authored by Kåre Särs's avatar Kåre Särs
Browse files

S&R: Fix project-plugin integration

Use projectName() in stead of projectFileName() to check if we have
an active project.
parent 42070096
Pipeline #140514 passed with stage
in 6 minutes and 13 seconds
......@@ -2324,13 +2324,13 @@ void KatePluginSearchView::slotPluginViewDeleted(const QString &name, QObject *)
void KatePluginSearchView::slotProjectFileNameChanged()
// query new project file name
QString projectFileName;
QString projectName;
if (m_projectPluginView) {
projectFileName = m_projectPluginView->property("projectFileName").toString();
projectName = m_projectPluginView->property("projectName").toString();
// have project, enable gui for it
if (!projectFileName.isEmpty()) {
if (!projectName.isEmpty()) {
if (m_ui.searchPlaceCombo->count() <= MatchModel::Project) {
// add "in Project"
m_ui.searchPlaceCombo->addItem(QIcon::fromTheme(QStringLiteral("project-open")), i18n("In Current Project"));
Supports Markdown
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