Skip to content

Commit

Permalink
Fixed handling of appendices when using encryption
Browse files Browse the repository at this point in the history
  • Loading branch information
julianmi committed Feb 28, 2018
1 parent a4bb01c commit 37005f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ compiler:
- gcc

env:
- QT_BASE=59 QT_LONG=594 CONFIG=debug
- QT_BASE=59 QT_LONG=594 CONFIG=release DEPLOY=true
- QT_BASE=59 QT_LONG=594 CONFIG=debug CRYPT=crypt
- QT_BASE=59 QT_LONG=594 CONFIG=release CRYPT=crypt DEPLOY=true
- QT_BASE=510 QT_LONG=5.10.1 CONFIG=debug
- QT_BASE=510 QT_LONG=5.10.1 CONFIG=release DEPLOY=true
- QT_BASE=510 QT_LONG=5.10.1 CONFIG=debug CRYPT=crypt
- QT_BASE=510 QT_LONG=5.10.1 CONFIG=release CRYPT=crypt DEPLOY=true

matrix:
exclude:
Expand Down
3 changes: 0 additions & 3 deletions src/setupdialog.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ SetupDialog::SetupDialog(MainWindow *window, Crypt *crypt) : QDialog() {
project_ = new Project(crypt);
new_project_flag_ = true;
settings_.setValue("conf/append", false);
append_activity_ = new Activity;
Setup();
CreateConnections();
LoadSettings();
Expand Down Expand Up @@ -412,15 +411,13 @@ bool SetupDialog::ProjectHandler() {
project_->ClearProject();
#ifdef CRYPT
bool status = project_->Load(project_dir_);
main_window_->AddAppendices();

while (status == false) {
PasswordDialog *pwd = new PasswordDialog(crypt_, false);
if (pwd->exec() == QDialog::Rejected) {
return false;
}
status = project_->Load(project_dir_);
main_window_->AddAppendices();
if (status == false) {
QMessageBox box;
box.setInformativeText("Password Incorrect.");
Expand Down

0 comments on commit 37005f6

Please sign in to comment.