Fixed #8517 (GUI: Can't copy filename with right click)

This commit is contained in:
Daniel Marjamäki 2019-07-15 12:58:25 +02:00
parent 4122b2111f
commit 97838f104c
1 changed files with 3 additions and 1 deletions

View File

@ -849,8 +849,10 @@ void ResultsTree::copy()
QString text; QString text;
foreach (QModelIndex index, selectedRows) { foreach (QModelIndex index, selectedRows) {
QStandardItem *item = mModel.itemFromIndex(index); QStandardItem *item = mModel.itemFromIndex(index);
if (!item->parent()) if (!item->parent()) {
text += item->text() + '\n';
continue; continue;
}
if (item->parent()->parent()) if (item->parent()->parent())
item = item->parent(); item = item->parent();
QVariantMap data = item->data().toMap(); QVariantMap data = item->data().toMap();