From 68280c7e9b5103fbd258cfad13b5b2cd73aeb6ab Mon Sep 17 00:00:00 2001 From: horsicq Date: Sun, 11 Nov 2018 22:12:46 +0100 Subject: [PATCH] Fix --- nfd/PluginMainWindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nfd/PluginMainWindow.cpp b/nfd/PluginMainWindow.cpp index 2f88ba0d..05ad523a 100644 --- a/nfd/PluginMainWindow.cpp +++ b/nfd/PluginMainWindow.cpp @@ -39,17 +39,17 @@ void PluginMainWindow::on_pushButtonScan_clicked() if(sFileName!="") { - QList listResult; + SpecAbstract::SCAN_RESULT scanResult; SpecAbstract::SCAN_OPTIONS options= {0}; options.bScanOverlay=ui->checkBoxScanOverlay->isChecked(); options.bDeepScan=ui->checkBoxDeepScan->isChecked(); DialogStaticScan ds(this); - ds.setData(sFileName,&options,&listResult); + ds.setData(sFileName,&options,&scanResult); ds.exec(); - ui->treeViewResult->setModel(new StaticScanItemModel(&listResult)); + ui->treeViewResult->setModel(new StaticScanItemModel(&scanResult.listRecords)); ui->treeViewResult->expandAll(); } }