mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
encryptionmanager.cpp
: Nonsensical fixes
This commit is contained in:
parent
08fc6ea967
commit
c733dd23ab
1 changed files with 4 additions and 3 deletions
|
@ -236,8 +236,10 @@ void encryptionManager::unlockEncryptedStorage() {
|
||||||
t->setInterval(1000);
|
t->setInterval(1000);
|
||||||
connect(t, &QTimer::timeout, [&]() {
|
connect(t, &QTimer::timeout, [&]() {
|
||||||
if(QFile::exists("/external_root/run/encfs_mounted")) {
|
if(QFile::exists("/external_root/run/encfs_mounted")) {
|
||||||
exitStatus = checkconfig("/external_root/run/encfs_mounted");
|
exitStatus = true;
|
||||||
if(exitStatus == false) {
|
if(readFile("/external_root/run/encfs_mounted") != "true\n") {
|
||||||
|
exitStatus = false;
|
||||||
|
QFile::remove("/external_root/run/encfs_mounted");
|
||||||
QString function = __func__; log(function + ": Invalid passphrase", className);
|
QString function = __func__; log(function + ": Invalid passphrase", className);
|
||||||
if(setupMessageBoxRan == false) {
|
if(setupMessageBoxRan == false) {
|
||||||
int delay = 0;
|
int delay = 0;
|
||||||
|
@ -331,7 +333,6 @@ void encryptionManager::setupFailedAuthenticationMessageBox() {
|
||||||
log("Showing 'Authentication failed' message box", className);
|
log("Showing 'Authentication failed' message box", className);
|
||||||
ui->activityWidget->hide();
|
ui->activityWidget->hide();
|
||||||
QMessageBox::critical(this, tr("Invalid argument"), tr("<font face='u001'>Invalid passphrase. Please try again.</font>"));
|
QMessageBox::critical(this, tr("Invalid argument"), tr("<font face='u001'>Invalid passphrase. Please try again.</font>"));
|
||||||
QFile::remove("/external_root/run/encfs_mounted");
|
|
||||||
quit_restart();
|
quit_restart();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue