mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 02:48:49 +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 "settings.h"
|
||||||
|
|
||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
|
#include <QFileInfo>
|
||||||
|
|
||||||
OptionsDialog::OptionsDialog(MainWindow *main):
|
OptionsDialog::OptionsDialog(MainWindow *main):
|
||||||
QDialog(0), // parent may not be main
|
QDialog(0), // parent may not be main
|
||||||
@ -48,7 +48,8 @@ OptionsDialog::OptionsDialog(MainWindow *main):
|
|||||||
connect(&analThread, SIGNAL(finished()), this, SLOT(anal_finished()));
|
connect(&analThread, SIGNAL(finished()), this, SLOT(anal_finished()));
|
||||||
|
|
||||||
ui->programLineEdit->setText(main->getFilename());
|
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()
|
OptionsDialog::~OptionsDialog()
|
||||||
|
Loading…
Reference in New Issue
Block a user