From 91a5d9a6d6fa89e54ed6c7af5be8058cc39570fd Mon Sep 17 00:00:00 2001 From: Itay Cohen Date: Thu, 27 Sep 2018 14:16:07 +0300 Subject: [PATCH] add Filename to Title (#726) --- src/MainWindow.cpp | 2 +- src/dialogs/InitialOptionsDialog.cpp | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index d7afcd0c..c71869fe 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -430,7 +430,7 @@ void MainWindow::setFilename(const QString &fn) { // Add file name to window title this->filename = fn; - this->setWindowTitle(APPNAME" - " + fn); + this->setWindowTitle(APPNAME" – " + fn); } void MainWindow::closeEvent(QCloseEvent *event) diff --git a/src/dialogs/InitialOptionsDialog.cpp b/src/dialogs/InitialOptionsDialog.cpp index f6d21214..33c89fac 100644 --- a/src/dialogs/InitialOptionsDialog.cpp +++ b/src/dialogs/InitialOptionsDialog.cpp @@ -224,10 +224,13 @@ QList InitialOptionsDialog::getSelectedAdvancedAnalCmds() void InitialOptionsDialog::setupAndStartAnalysis(/*int level, QList advanced*/) { main->initUI(); - + InitialOptions options; options.filename = main->getFilename(); + if (!options.filename.isEmpty()) { + main->setWindowTitle("Cutter – " + options.filename); + } options.shellcode = this->shellcode; // Where the bin header is located in the file (-B)