mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Use QFileInfo's exists() static method
The exists() static method is documented to be faster than its equivalent member method. See https://doc.qt.io/qt-5/qfileinfo.html#exists-1
This commit is contained in:
parent
891f67a1cd
commit
9a5bbea2e4
@ -1532,7 +1532,7 @@ bool DatabaseWidget::saveAs()
|
||||
{
|
||||
while (true) {
|
||||
QString oldFilePath = m_db->filePath();
|
||||
if (!QFileInfo(oldFilePath).exists()) {
|
||||
if (!QFileInfo::exists(oldFilePath)) {
|
||||
oldFilePath = QDir::toNativeSeparators(config()->get("LastDir", QDir::homePath()).toString() + "/"
|
||||
+ tr("Passwords").append(".kdbx"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user