diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2018-06-26 13:22:38 +0200 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2018-06-26 13:22:38 +0200 |
commit | 56ff5a020b0f90e0abf0b0f571c100e6ff78d3a2 (patch) | |
tree | fdbe069cfb07748d1c2acefbb0229b0ec581f61d /src/mainwindow.cpp | |
parent | 1cec9a3a5892e2a2fc3023bc87f9c0a78f1a5cd2 (diff) |
Minor cleanup
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r-- | src/mainwindow.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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 |