Commit 1418739a authored by Thomas Surrel's avatar Thomas Surrel Committed by Nate Graham

Fix CTags dialog error message when adding target

Summary:
When trying to add a new index target in the CTags addon (from the view, not from the settings), the dialog message to select the folder is set to point to the current _file_ instead of the current file _directory_. The dialog than complains about it not being a directory.

BUG: 394402

Reviewers: #kate, sars

Reviewed By: #kate, sars

Subscribers: sars, kwrite-devel

Tags: #kate

Differential Revision: https://phabricator.kde.org/D13115
parent e3bb573d
......@@ -544,7 +544,7 @@ void KateCTagsView::updateDone(int exitCode, QProcess::ExitStatus status)
void KateCTagsView::addTagTarget()
{
QFileDialog dialog;
dialog.setDirectory(m_mWin->activeView()->document()->url().path());
dialog.setDirectory(QFileInfo(m_mWin->activeView()->document()->url().path()).path());
dialog.setFileMode(QFileDialog::Directory);
// i18n("CTags Database Location"));
......
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