Skip to content

Commit 481c96d

Browse files
committed
Encryption warning
1 parent 8104de5 commit 481c96d

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

QuickNote.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,7 @@ win32 {
7272
-llibboost_regex-mgw53-mt-d-x32-1_67 \
7373
-llibboost_filesystem-mgw53-mt-d-x32-1_67 \
7474
-llibboost_system-mgw53-mt-d-x32-1_67
75+
76+
INCLUDEPATH += C:/dev/cryptopp700/
77+
LIBS += -LC:/dev/cryptopp700/release/ -llibcryptopp
7578
}

QuickNote.pro.user

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE QtCreatorProject>
3-
<!-- Written by QtCreator 4.5.2, 2018-08-14T21:57:30. -->
3+
<!-- Written by QtCreator 4.5.2, 2018-08-16T02:18:09. -->
44
<qtcreator>
55
<data>
66
<variable>EnvironmentId</variable>
@@ -62,7 +62,7 @@
6262
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 5.10.1 clang 64bit</value>
6363
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 5.10.1 clang 64bit</value>
6464
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt5.5101.clang_64_kit</value>
65-
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
65+
<value type="int" key="ProjectExplorer.Target.ActiveBuildConfiguration">1</value>
6666
<value type="int" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
6767
<value type="int" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
6868
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
@@ -310,7 +310,7 @@
310310
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.ProFile">QuickNote.pro</value>
311311
<value type="bool" key="Qt4ProjectManager.Qt4RunConfiguration.UseDyldImageSuffix">false</value>
312312
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory"></value>
313-
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory.default">/Users/dhamith/git/build-QuickNote-Desktop_Qt_5_10_1_clang_64bit-Debug/QuickNote.app/Contents/MacOS</value>
313+
<value type="QString" key="Qt4ProjectManager.Qt4RunConfiguration.UserWorkingDirectory.default">/Users/dhamith/git/build-QuickNote-Desktop_Qt_5_10_1_clang_64bit-Release/QuickNote.app/Contents/MacOS</value>
314314
<value type="uint" key="RunConfiguration.QmlDebugServerPort">3768</value>
315315
<value type="bool" key="RunConfiguration.UseCppDebugger">false</value>
316316
<value type="bool" key="RunConfiguration.UseCppDebuggerAuto">true</value>

src/mainwindow.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,12 @@ void MainWindow::on_actionExport_HTML_triggered() {
257257
}
258258

259259
void MainWindow::on_actionEncrypt_note_triggered() {
260-
QString pswd = QInputDialog::getText(0, "Encrypt Note", "Enter the passphrase...", QLineEdit::Password);
260+
QString pswd = QInputDialog::getText(
261+
0,
262+
"Encrypt Note",
263+
"Enter the passphrase...\nNOTE: Please remember your password! This can't be reversed without it.",
264+
QLineEdit::Password
265+
);
261266
std::string input = ui->noteText->toPlainText().toStdString();
262267
std::string passphrase = pswd.toStdString();
263268

0 commit comments

Comments
 (0)