bug correction in making treeview
This commit is contained in:
parent
3345a65b28
commit
7e736b524e
@ -627,7 +627,7 @@ QTreeWidgetItem * MainWindow::addTreeChild(QTreeWidgetItem *parent, QString name
|
||||
}else
|
||||
{
|
||||
// item is a file
|
||||
treeItem->setText(1,("File"));
|
||||
treeItem->setText(1,tr("File"));
|
||||
}
|
||||
treeItem->setText(0, name);
|
||||
treeItem->setText(2, fileSize);
|
||||
@ -737,6 +737,7 @@ void MainWindow::on_treeWidget_itemClicked(QTreeWidgetItem *item, bool downloadD
|
||||
path.prepend(itemR->text(0) + "/");
|
||||
};
|
||||
QFileInfo info(this->downloading.savePath + "/" + path);
|
||||
cout << item->text(1).toStdString() <<endl;
|
||||
if (item->text(1) == tr("File") or downloadDir == true)
|
||||
{
|
||||
// Item is a file
|
||||
|
Loading…
Reference in New Issue
Block a user