summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/configdialog.cpp8
-rw-r--r--src/imitatepass.cpp6
-rw-r--r--src/mainwindow.cpp10
-rw-r--r--src/realpass.cpp1
-rw-r--r--src/util.cpp1
5 files changed, 13 insertions, 13 deletions
diff --git a/src/configdialog.cpp b/src/configdialog.cpp
index 92a90053..939f8462 100644
--- a/src/configdialog.cpp
+++ b/src/configdialog.cpp
@@ -45,10 +45,10 @@ ConfigDialog::ConfigDialog(MainWindow *parent)
ui->checkBoxAutoPush->setChecked(QtPassSettings::isAutoPush());
ui->checkBoxAlwaysOnTop->setChecked(QtPassSettings::isAlwaysOnTop());
- #if defined(Q_OS_WIN ) || defined(__APPLE__)
- ui->checkBoxUseOtp->hide();
- ui->label_10->hide();
- #endif
+#if defined(Q_OS_WIN) || defined(__APPLE__)
+ ui->checkBoxUseOtp->hide();
+ ui->label_10->hide();
+#endif
setProfiles(QtPassSettings::getProfiles(), QtPassSettings::getProfile());
setPwgenPath(QtPassSettings::getPwgenExecutable());
diff --git a/src/imitatepass.cpp b/src/imitatepass.cpp
index 783fb250..98d8d119 100644
--- a/src/imitatepass.cpp
+++ b/src/imitatepass.cpp
@@ -47,13 +47,15 @@ void ImitatePass::Show(QString file) {
QStringList args = {"-d", "--quiet", "--yes", "--no-encrypt-to",
"--batch", "--use-agent", file};
executeGpg(PASS_SHOW, args);
-
}
/**
* @brief ImitatePass::OtpGenerate generates an otp code
*/
-void ImitatePass::OtpGenerate(QString file) {}
+void ImitatePass::OtpGenerate(QString file) {
+ dbg() << "No OTP generation code for fake pass yet, attempting for file: " +
+ file;
+}
/**
* @brief ImitatePass::Insert create new file with encrypted content
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index e894b312..3b9e9411 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -598,8 +598,8 @@ void MainWindow::passShowHandler(const QString &p_output) {
void MainWindow::passOtpHandler(const QString &p_output) {
if (!p_output.isEmpty()) {
- addToGridLayout(ui->gridLayout->count()+1, tr("OTP Code"), p_output);
- copyTextToClipboard(p_output);
+ addToGridLayout(ui->gridLayout->count() + 1, tr("OTP Code"), p_output);
+ copyTextToClipboard(p_output);
}
if (QtPassSettings::isUseAutoclearPanel()) {
clearPanelTimer.start();
@@ -1456,9 +1456,9 @@ void MainWindow::updateGitButtonVisibility() {
}
void MainWindow::updateOtpButtonVisibility() {
- #if defined(Q_OS_WIN ) || defined(__APPLE__)
- ui->actionOtp->setVisible(false);
- #endif
+#if defined(Q_OS_WIN) || defined(__APPLE__)
+ ui->actionOtp->setVisible(false);
+#endif
if (!QtPassSettings::isUseOtp())
ui->actionOtp->setEnabled(false);
else
diff --git a/src/realpass.cpp b/src/realpass.cpp
index 798ebb83..476757ee 100644
--- a/src/realpass.cpp
+++ b/src/realpass.cpp
@@ -52,7 +52,6 @@ void RealPass::OtpGenerate(QString file) {
executePass(PASS_OTP_GENERATE, {"otp", file}, "", true);
}
-
/**
* @brief RealPass::Insert pass insert
*/
diff --git a/src/util.cpp b/src/util.cpp
index 5e283b79..47c3a298 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -99,7 +99,6 @@ QString Util::findBinaryInPath(QString binary) {
qfi.reset(new QFileInfo(entry.append(".exe")));
#endif
- dbg() << entry;
if (!qfi->isExecutable())
continue;