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;
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();