Skip to content

Commit

Permalink
added info messages
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarmix committed Jun 12, 2023
1 parent f432556 commit 2cbc2e2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
5 changes: 5 additions & 0 deletions hexwalk/advancedsearchdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,11 @@ void AdvancedSearchDialog::findAll()
break;
}
}

QString message = QString("%1 occurrencies found").arg(count);
QMessageBox::information(this, tr("HexWalk"),message);


setData();
ui->resultsTableView->resizeColumnsToContents();
ui->resultsTableView->verticalHeader()->show();
Expand Down
15 changes: 13 additions & 2 deletions hexwalk/hexwalkmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -535,13 +535,24 @@ void HexWalkMain::showAdvancedSearchDialog()

void HexWalkMain::showDiffDialog()
{
diffFile = QFileDialog::getOpenFileName(this);
if (!diffFile.isEmpty()) {
if(curFile.length() == 0)
{
QMessageBox::warning(this, tr("HexWalk"),
tr("You must select a file first.")
);
}
else
{
diffFile = QFileDialog::getOpenFileName(this);
if (!diffFile.isEmpty()) {
diffDialog->setFiles(curFile,diffFile);
diffDialog->show();

}

}


}

void HexWalkMain::showEntropyDialog()
Expand Down

0 comments on commit 2cbc2e2

Please sign in to comment.