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;
|
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();
|
||||||
|
|
Loading…
Reference in New Issue