mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-19 03:16:10 +00:00
add Filename to Title (#726)
This commit is contained in:
parent
50e786cbf0
commit
91a5d9a6d6
@ -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)
|
||||||
|
@ -228,6 +228,9 @@ void InitialOptionsDialog::setupAndStartAnalysis(/*int level, QList<QString> adv
|
|||||||
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user