diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 6ae207f..1592138 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -66,7 +66,6 @@ void MainWindow::on_actionNew_case_triggered() QFileDialog dialog(this); dialog.setWindowTitle("New case: Please select a directory with .bmp RDP cache images"); dialog.setAcceptMode(QFileDialog::AcceptOpen); - dialog.setFileMode(QFileDialog::DirectoryOnly); dialog.setOption(QFileDialog::ShowDirsOnly, false); dialog.setViewMode(QFileDialog::Detail); if (dialog.exec() == QDialog::Accepted) { diff --git a/src/tilestore.cpp b/src/tilestore.cpp index 738f776..52bd038 100644 --- a/src/tilestore.cpp +++ b/src/tilestore.cpp @@ -78,7 +78,7 @@ QString TileStore::loadTiles(QString dir) tileSize = t.size; useCounts.append(0); // Check for duplicate - uint hash = qHashBits(t.getImage().constBits(), t.getImage().byteCount()); + uint hash = qHashBits(t.getImage().constBits(), t.getImage().sizeInBytes()); if (imageHashes.contains(hash)) { t.isDuplicate = true; numDuplicates++;