diff --git a/README.md b/README.md index 6759de8..b3a59d8 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,9 @@ The sync version of libusb is applied, but ultimately the async routines will be If anyone wants to help, or has a description of the protocol, you are very welcome to get involved +Depends libusb-dev +Depends libhidapi-libusb + +Note : udev/rules.d +SUBSYSTEM=="usb", ATTRS{idVendor}=="03f0", MODE="0666" +SUBSYSTEM=="usb_device", ATTRS{idVendor}=="03f0", MODE="0666" diff --git a/hptreeitem.cpp b/hptreeitem.cpp index 26a7e90..b071eb8 100644 --- a/hptreeitem.cpp +++ b/hptreeitem.cpp @@ -575,6 +575,6 @@ hpTreeItem::~hpTreeItem() { } */ - qDebug()<<"hpTreeItem:: delete"; + //qDebug()<<"hpTreeItem:: delete"; } diff --git a/hpusb.h b/hpusb.h index 476bbc4..535637d 100644 --- a/hpusb.h +++ b/hpusb.h @@ -1,7 +1,7 @@ #ifndef HPUSB_H #define HPUSB_H -#include +#include #include #include #include diff --git a/mainwindow.cpp b/mainwindow.cpp index 8fc2c5f..3ec4893 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -381,7 +381,19 @@ void MainWindow::setContentWindow() { // contentModel.iconProvider()->setOptions(QFileIconProvider::DontUseCustomDirectoryIcons); ui->tvContent->setModel(&contentModel); + + QDir dir(path); + + if (!dir.exists()) { + qDebug()<<"Content Path Does not Exist:"<tvContent->setRootIndex(rootIndex); @@ -496,7 +508,7 @@ void MainWindow::setTimerStopped() { void MainWindow::closeEvent(QCloseEvent *event) { - qDebug()<<"MainWindow:: closeEvent Step 1"; + //qDebug()<<"MainWindow:: closeEvent Step 1"; writeSettings(); //stop the timer pulse @@ -505,7 +517,7 @@ void MainWindow::closeEvent(QCloseEvent *event) event->accept(); close(); - qDebug()<<"MainWindow:: closeEvent Step 2"; + //qDebug()<<"MainWindow:: closeEvent Step 2"; } void MainWindow::writeSettings() @@ -639,7 +651,7 @@ void MainWindow::on_tvCalculators_customContextMenuRequested(const QPoint &pos) //destructor MainWindow::~MainWindow() { - qDebug()<<"MainWindow:: closeEvent Step 3"; + //qDebug()<<"MainWindow:: closeEvent Step 3"; ui->tvCalculators->close(); ui->tvContent->close(); @@ -648,7 +660,7 @@ MainWindow::~MainWindow() ui->dwMessenger->close(); ui->dwCalculator->close(); - qDebug()<<"MainWindow:: closeEvent Step 4"; + //qDebug()<<"MainWindow:: closeEvent Step 4"; if (main_err!=nullptr) { delete main_err; @@ -660,7 +672,7 @@ MainWindow::~MainWindow() myModel=nullptr; } - qDebug()<<"MainWindow:: closeEvent Step 5"; + //qDebug()<<"MainWindow:: closeEvent Step 5"; //might need a mechanism to inform eventThread that the comms module is closed