mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-18 18:38:51 +00:00
Allow opening read-only files (e.g. system binaries) (#196)
This commit is contained in:
parent
6ed212a4ef
commit
76f3cc07fc
@ -10,7 +10,7 @@
|
||||
#include "settings.h"
|
||||
|
||||
#include <QSettings>
|
||||
|
||||
#include <QFileInfo>
|
||||
|
||||
OptionsDialog::OptionsDialog(MainWindow *main):
|
||||
QDialog(0), // parent may not be main
|
||||
@ -48,7 +48,8 @@ OptionsDialog::OptionsDialog(MainWindow *main):
|
||||
connect(&analThread, SIGNAL(finished()), this, SLOT(anal_finished()));
|
||||
|
||||
ui->programLineEdit->setText(main->getFilename());
|
||||
this->main->core->tryFile(main->getFilename(), true);
|
||||
QFileInfo fi(this->main->getFilename());
|
||||
this->main->core->tryFile(fi.filePath(), fi.isWritable());
|
||||
}
|
||||
|
||||
OptionsDialog::~OptionsDialog()
|
||||
|
Loading…
Reference in New Issue
Block a user