From 97838f104c28ad0c8b38302428e012b26e906319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 15 Jul 2019 12:58:25 +0200 Subject: [PATCH] Fixed #8517 (GUI: Can't copy filename with right click) --- gui/resultstree.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gui/resultstree.cpp b/gui/resultstree.cpp index 61e0c1c77..f5c5adcf7 100644 --- a/gui/resultstree.cpp +++ b/gui/resultstree.cpp @@ -849,8 +849,10 @@ void ResultsTree::copy() QString text; foreach (QModelIndex index, selectedRows) { QStandardItem *item = mModel.itemFromIndex(index); - if (!item->parent()) + if (!item->parent()) { + text += item->text() + '\n'; continue; + } if (item->parent()->parent()) item = item->parent(); QVariantMap data = item->data().toMap();