add Filename to Title (#726)

This commit is contained in:
Itay Cohen 2018-09-27 14:16:07 +03:00 committed by GitHub
parent 50e786cbf0
commit 91a5d9a6d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -430,7 +430,7 @@ void MainWindow::setFilename(const QString &fn)
{ {
// Add file name to window title // Add file name to window title
this->filename = fn; this->filename = fn;
this->setWindowTitle(APPNAME" - " + fn); this->setWindowTitle(APPNAME" " + fn);
} }
void MainWindow::closeEvent(QCloseEvent *event) void MainWindow::closeEvent(QCloseEvent *event)

View File

@ -224,10 +224,13 @@ QList<QString> InitialOptionsDialog::getSelectedAdvancedAnalCmds()
void InitialOptionsDialog::setupAndStartAnalysis(/*int level, QList<QString> advanced*/) void InitialOptionsDialog::setupAndStartAnalysis(/*int level, QList<QString> advanced*/)
{ {
main->initUI(); main->initUI();
InitialOptions options; InitialOptions options;
options.filename = main->getFilename(); options.filename = main->getFilename();
if (!options.filename.isEmpty()) {
main->setWindowTitle("Cutter " + options.filename);
}
options.shellcode = this->shellcode; options.shellcode = this->shellcode;
// Where the bin header is located in the file (-B) // Where the bin header is located in the file (-B)