Skip to content

Commit

Permalink
[FEATURE] Add messagebox with info about atypical features of the loa…
Browse files Browse the repository at this point in the history
…ded PE (Issue #11)
  • Loading branch information
hasherezade committed Feb 19, 2023
1 parent cca86a8 commit ed523ea
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion pe-bear/gui/windows/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,16 @@ void MainWindow::onHandlerSelected(PeHandler* peHndl)
void MainWindow::onExeHandlerAdded(PeHandler* hndl)
{
if (hndl == NULL) return;
this->statusBar.showMessage("Loaded: "+ hndl->getFullName());

const QString loadInfo = "Loaded: "+ hndl->getFullName();
this->statusBar.showMessage(loadInfo);
this->loadTagsForPe(hndl);

// show warnings:
QStringList peInfo;
if (hndl->isPeAtypical(&peInfo)) {
QMessageBox::warning(this, "Warning", hndl->getFullName() + ":\n" + peInfo.join("\n"));
}
}

int MainWindow::openMultiplePEs(QStringList fNames)
Expand Down

0 comments on commit ed523ea

Please sign in to comment.