Fixed #8517 (GUI: Can't copy filename with right click)
This commit is contained in:
parent
4122b2111f
commit
97838f104c
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue