summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEttore Dreucci <ettore.dreucci@gmail.com>2019-08-29 17:33:35 +0200
committerEttore Dreucci <ettore.dreucci@gmail.com>2019-08-29 17:33:35 +0200
commit7e5b4c432c0bdbd6d395e3c1ef6aaa3c308e1c67 (patch)
tree3e26df3d12664e4ea61500690c5dd040b955b539 /src
parent49923bf4872211bb8af3cd7931f326a9d02cc96b (diff)
Resolved password rename problem.
Signed-off-by: Ettore Dreucci <ettore.dreucci@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/mainwindow.cpp6
-rw-r--r--src/src.pro2
2 files changed, 3 insertions, 5 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index c1eddacd..e685c0f1 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -1007,7 +1007,7 @@ void MainWindow::editPassword(const QString &file) {
}
/**
- * @brief MainWindow::renamePassword rename or move an existing password
+ * @brief MainWindow::renamePassword rename an existing password
*/
void MainWindow::renamePassword() {
bool ok;
@@ -1021,11 +1021,9 @@ void MainWindow::renamePassword() {
&ok);
if (!ok || newName.isEmpty())
return;
- qDebug() << fileName;
- qDebug() << newName;
QString newFile = file;
newFile.replace(file.lastIndexOf(fileName), fileName.length(), newName);
- qDebug() << newFile;
+ newFile.replace(QRegExp("\\.gpg$"), "");
QtPassSettings::getPass()->Move(file, newFile);
}
diff --git a/src/src.pro b/src/src.pro
index 7984d298..3906a0cd 100644
--- a/src/src.pro
+++ b/src/src.pro
@@ -5,7 +5,7 @@ QT += core gui
TARGET = qtpass
CONFIG += c++11 staticlib
-#CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
+CONFIG(release, debug|release):DEFINES += QT_NO_DEBUG_OUTPUT
SOURCES += mainwindow.cpp \
configdialog.cpp \