Compare commits

..

8 Commits
2.6.5 ... 2.6.6

Author SHA1 Message Date
Jonathan White
9c108b9510 Release 2.6.6
Fixed

- Fix focusing search when pressing hotkey [#6603]
- Trim whitespace from TOTP key input prior to processing [#6604]
- Fix building on macOS [#6598]
- Resolve compiler warnings for unused return values [#6607]
2021-06-11 22:13:52 -04:00
Jonathan White
596821ca0d Update translations 2021-06-11 22:13:32 -04:00
Jonathan White
faf48d0b02 Version bump to 2.6.6 2021-06-11 22:12:21 -04:00
Jonathan White
4bdc2539f9 Improve testdatabase performance 2021-06-11 22:01:19 -04:00
Jonathan White
6422fe5ca5 Trim TOTP key input of whitespace prior to processing
* Fixes #6599
2021-06-10 16:48:25 -04:00
Jonathan White
9e2399adf4 Resolve compiler warnings for unused return values
* Fixes #1932 - See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66425#c29

Adding a negation before the function call allows the (void) syntax to work properly.
2021-06-10 16:48:18 -04:00
Jonathan White
c661fa331f Fix focusing search using Ctrl + F
* Fixes #6600 - error exists only on master branch due to poor cherrypick merge
2021-06-09 05:55:43 -04:00
Jonathan White
db9fc57a37 Fix compilation on macOS 2021-06-08 18:57:15 -04:00
15 changed files with 53 additions and 45 deletions

View File

@@ -1,5 +1,14 @@
# Changelog
## 2.6.6 (2021-06-11)
### Fixed
- Fix focusing search when pressing hotkey [#6603]
- Trim whitespace from TOTP key input prior to processing [#6604]
- Fix building on macOS [#6598]
- Resolve compiler warnings for unused return values [#6607]
## 2.6.5 (2021-06-07)
### Added

View File

@@ -101,7 +101,7 @@ endif()
set(KEEPASSXC_VERSION_MAJOR "2")
set(KEEPASSXC_VERSION_MINOR "6")
set(KEEPASSXC_VERSION_PATCH "5")
set(KEEPASSXC_VERSION_PATCH "6")
set(KEEPASSXC_VERSION "${KEEPASSXC_VERSION_MAJOR}.${KEEPASSXC_VERSION_MINOR}.${KEEPASSXC_VERSION_PATCH}")
set(OVERRIDE_VERSION "" CACHE STRING "Override the KeePassXC Version for Snapshot builds")

View File

@@ -50,6 +50,16 @@
</screenshots>
<releases>
<release version="2.6.6" date="2021-06-11">
<description>
<ul>
<li>Fix focusing search when pressing hotkey [#6603]</li>
<li>Trim whitespace from TOTP key input prior to processing [#6604]</li>
<li>Fix building on macOS [#6598]</li>
<li>Resolve compiler warnings for unused return values [#6607]</li>
</ul>
</description>
</release>
<release version="2.6.5" date="2021-06-07">
<description>
<ul>

View File

@@ -4705,11 +4705,11 @@ Expect some bugs and minor issues, this version is not meant for production use.
</message>
<message>
<source>Database &amp;Security</source>
<translation>Βάση Δεδομένων &amp; Ασφάλεια...</translation>
<translation>Ασφάλεια Βάσης Δεδομένων...</translation>
</message>
<message>
<source>Database &amp;Reports...</source>
<translation>Βάση Δεδομένων &amp; Αναφορές...</translation>
<translation>Αναφορές Βάσης Δεδομένων...</translation>
</message>
<message>
<source>Statistics, health check, etc.</source>

View File

@@ -4405,15 +4405,15 @@ Valóban folytatható a művelet ezzel a fájllal?</translation>
</message>
<message>
<source>Generate a new key file or choose an existing one to protect your database.</source>
<translation type="unfinished"/>
<translation>Új kulcsfájl generálása vagy egy meglévő kulcsfájl kijelölése az adatbázis védelméhez.</translation>
</message>
<message>
<source>Note: Do NOT use a file that may change as that will prevent you from unlocking your database.</source>
<translation type="unfinished"/>
<translation>Megjegyzés: NEM szabad olyan fájlt használni, amely megváltozhat, mivel ez megakadályozza az adatbázis feloldását!</translation>
</message>
<message>
<source>Browse</source>
<translation type="unfinished"/>
<translation>Tallózás</translation>
</message>
</context>
<context>
@@ -5515,7 +5515,7 @@ Néhány hiba és kisebb nehézségek várhatóak, ezért ez a verzió nem aján
</message>
<message>
<source>Excluded characters: &quot;0&quot;, &quot;O&quot;, &quot;1&quot;, &quot;l&quot;, &quot;I&quot;, &quot;|&quot;, &quot;G&quot;, &quot;6&quot;, &quot;B&quot;, &quot;8&quot;, &quot;&quot;</source>
<translation type="unfinished"/>
<translation>Kihagyott karakterek: 0, O, 1, l, I, |, G, 6, B, 8, </translation>
</message>
</context>
<context>
@@ -6792,19 +6792,19 @@ Fontolja meg, hogy új kulcsfájlt állítson elő.</translation>
</message>
<message numerus="yes">
<source>Clearing the clipboard in %1 second(s)</source>
<translation type="unfinished"><numerusform></numerusform><numerusform></numerusform></translation>
<translation><numerusform>Vágólap törlése %1 másodperc múlva</numerusform><numerusform>Vágólap törlése %1 másodperc múlva</numerusform></translation>
</message>
<message>
<source>lock all open databases</source>
<translation type="unfinished"/>
<translation>Összes nyitott adatbázis zárolása</translation>
</message>
<message>
<source>Locked databases.</source>
<translation type="unfinished"/>
<translation>Zárolt adatbázisok.</translation>
</message>
<message>
<source>Database failed to lock.</source>
<translation type="unfinished"/>
<translation>Adatbázis-zárolás sikertelen.</translation>
</message>
</context>
<context>

View File

@@ -4404,15 +4404,15 @@ Are you sure you want to continue with this file?</source>
</message>
<message>
<source>Generate a new key file or choose an existing one to protect your database.</source>
<translation type="unfinished"/>
<translation></translation>
</message>
<message>
<source>Note: Do NOT use a file that may change as that will prevent you from unlocking your database.</source>
<translation type="unfinished"/>
<translation>使</translation>
</message>
<message>
<source>Browse</source>
<translation type="unfinished"/>
<translation></translation>
</message>
</context>
<context>
@@ -5515,7 +5515,7 @@ Expect some bugs and minor issues, this version is not meant for production use.
</message>
<message>
<source>Excluded characters: &quot;0&quot;, &quot;O&quot;, &quot;1&quot;, &quot;l&quot;, &quot;I&quot;, &quot;|&quot;, &quot;G&quot;, &quot;6&quot;, &quot;B&quot;, &quot;8&quot;, &quot;&quot;</source>
<translation type="unfinished"/>
<translation>&quot;0&quot;, &quot;O&quot;, &quot;1&quot;, &quot;l&quot;, &quot;I&quot;, &quot;|&quot;, &quot;G&quot;, &quot;6&quot;, &quot;B&quot;, &quot;8&quot;, &quot;&quot;</translation>
</message>
</context>
<context>
@@ -6792,19 +6792,19 @@ Please consider generating a new key file.</source>
</message>
<message numerus="yes">
<source>Clearing the clipboard in %1 second(s)</source>
<translation type="unfinished"><numerusform></numerusform></translation>
<translation><numerusform> %1 簿...</numerusform></translation>
</message>
<message>
<source>lock all open databases</source>
<translation type="unfinished"/>
<translation></translation>
</message>
<message>
<source>Locked databases.</source>
<translation type="unfinished"/>
<translation></translation>
</message>
<message>
<source>Database failed to lock.</source>
<translation type="unfinished"/>
<translation></translation>
</message>
</context>
<context>

View File

@@ -1,5 +1,5 @@
name: keepassxc
version: 2.6.5
version: 2.6.6
grade: stable
summary: Community-driven port of the Windows application “KeePass Password Safe”
description: |

View File

@@ -235,7 +235,7 @@ void Application::handleUnixSignal(int sig)
case SIGINT:
case SIGTERM: {
char buf = 0;
Q_UNUSED(::write(unixSignalSocket[0], &buf, sizeof(buf)));
Q_UNUSED(!::write(unixSignalSocket[0], &buf, sizeof(buf)));
return;
}
case SIGHUP:
@@ -247,7 +247,7 @@ void Application::quitBySignal()
{
m_unixSignalNotifier->setEnabled(false);
char buf;
Q_UNUSED(::read(unixSignalSocket[1], &buf, sizeof(buf)));
Q_UNUSED(!::read(unixSignalSocket[1], &buf, sizeof(buf)));
emit quitSignalReceived();
}
#endif

View File

@@ -51,9 +51,6 @@ SearchWidget::SearchWidget(QWidget* parent)
connect(m_clearSearchTimer, SIGNAL(timeout()), SLOT(clearSearch()));
connect(this, SIGNAL(escapePressed()), SLOT(clearSearch()));
new QShortcut(QKeySequence::Find, this, SLOT(searchFocus()), nullptr, Qt::ApplicationShortcut);
new QShortcut(Qt::Key_Escape, m_ui->searchEdit, SLOT(clear()), nullptr, Qt::ApplicationShortcut);
m_ui->searchEdit->setPlaceholderText(tr("Search (%1)...", "Search placeholder text, %1 is the keyboard shortcut")
.arg(QKeySequence(QKeySequence::Find).toString(QKeySequence::NativeText)));
m_ui->searchEdit->installEventFilter(this);

View File

@@ -46,7 +46,7 @@ void TotpSetupDialog::saveSettings()
{
// Secret key sanity check
// Convert user input to all uppercase and remove '='
auto key = m_ui->seedEdit->text().toUpper().remove(" ").remove("=").toLatin1();
auto key = m_ui->seedEdit->text().toUpper().remove(" ").remove("=").trimmed().toLatin1();
auto sanitizedKey = Base32::sanitizeInput(key);
// Use startsWith to ignore added '=' for padding at the end
if (!sanitizedKey.startsWith(key)) {

View File

@@ -17,13 +17,8 @@
*/
#import "AppKitImpl.h"
#include "AppKit.h"
#import <AppKit/NSStatusBar.h>
#import <AppKit/NSStatusItem.h>
#import <AppKit/NSStatusBarButton.h>
#import <AppKit/NSWorkspace.h>
#import <CoreVideo/CVPixelBuffer.h>
#import <QWindow>
#import <Cocoa/Cocoa.h>
@implementation AppKitImpl

View File

@@ -23,6 +23,7 @@
#include "config-keepassx-tests.h"
#include "core/Metadata.h"
#include "core/Tools.h"
#include "crypto/Crypto.h"
#include "format/KeePass2Writer.h"
#include "keys/PasswordKey.h"
@@ -118,6 +119,9 @@ void TestDatabase::testSignals()
QVERIFY(db->save(&error));
QCOMPARE(spySaved.count(), 1);
// Short delay to allow file system settling to reduce test failures
Tools::wait(100);
QSignalSpy spyFileChanged(db.data(), SIGNAL(databaseFileChanged()));
QVERIFY(tempFile.copyFromFile(dbFileName));
QTRY_COMPARE(spyFileChanged.count(), 1);

View File

@@ -235,7 +235,7 @@ void TestKeys::benchmarkTransformKey()
QBENCHMARK
{
Q_UNUSED(compositeKey->transform(kdf, result));
Q_UNUSED(!compositeKey->transform(kdf, result));
};
}

View File

@@ -853,7 +853,7 @@ void TestGui::testTotp()
void TestGui::testSearch()
{
// Add canned entries for consistent testing
Q_UNUSED(addCannedEntries());
addCannedEntries();
auto* toolBar = m_mainWindow->findChild<QToolBar*>("toolBar");
@@ -1007,7 +1007,7 @@ void TestGui::testSearch()
void TestGui::testDeleteEntry()
{
// Add canned entries for consistent testing
Q_UNUSED(addCannedEntries());
addCannedEntries();
auto* groupView = m_dbWidget->findChild<GroupView*>("groupView");
auto* entryView = m_dbWidget->findChild<EntryView*>("entryView");
@@ -1673,10 +1673,8 @@ void TestGui::testAutoType()
entryView->selectionModel()->clearSelection();
}
int TestGui::addCannedEntries()
void TestGui::addCannedEntries()
{
int entries_added = 0;
// Find buttons
auto* toolBar = m_mainWindow->findChild<QToolBar*>("toolBar");
QWidget* entryNewWidget = toolBar->widgetForAction(m_mainWindow->findChild<QAction*>("actionEntryNew"));
@@ -1689,22 +1687,17 @@ int TestGui::addCannedEntries()
QTest::keyClicks(titleEdit, "test");
auto* editEntryWidgetButtonBox = editEntryWidget->findChild<QDialogButtonBox*>("buttonBox");
QTest::mouseClick(editEntryWidgetButtonBox->button(QDialogButtonBox::Ok), Qt::LeftButton);
++entries_added;
// Add entry "something 2"
QTest::mouseClick(entryNewWidget, Qt::LeftButton);
QTest::keyClicks(titleEdit, "something 2");
QTest::keyClicks(passwordEdit, "something 2");
QTest::mouseClick(editEntryWidgetButtonBox->button(QDialogButtonBox::Ok), Qt::LeftButton);
++entries_added;
// Add entry "something 3"
QTest::mouseClick(entryNewWidget, Qt::LeftButton);
QTest::keyClicks(titleEdit, "something 3");
QTest::mouseClick(editEntryWidgetButtonBox->button(QDialogButtonBox::Ok), Qt::LeftButton);
++entries_added;
return entries_added;
}
void TestGui::checkDatabase(QString dbFileName)

View File

@@ -72,7 +72,7 @@ private slots:
void testTrayRestoreHide();
private:
int addCannedEntries();
void addCannedEntries();
void checkDatabase(QString dbFileName = "");
void triggerAction(const QString& name);
void dragAndDropGroup(const QModelIndex& sourceIndex,