Commit 23c23866 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

Fix backtrace browser unable to open file

parent 9f135202
...@@ -234,7 +234,7 @@ void KateBtBrowserWidget::itemActivated(QTreeWidgetItem *item, int column) ...@@ -234,7 +234,7 @@ void KateBtBrowserWidget::itemActivated(QTreeWidgetItem *item, int column)
} }
if (!path.isEmpty() && QFile::exists(path)) { if (!path.isEmpty() && QFile::exists(path)) {
KTextEditor::View *kv = mw->openUrl(QUrl(path)); KTextEditor::View *kv = mw->openUrl(QUrl::fromLocalFile(path));
kv->setCursorPosition(KTextEditor::Cursor(line - 1, 0)); kv->setCursorPosition(KTextEditor::Cursor(line - 1, 0));
kv->setFocus(); kv->setFocus();
setStatus(i18n("Opened file: %1", file)); setStatus(i18n("Opened file: %1", file));
......
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