Browse Source

Use faster code path

From Qt doc: Using this function is faster than using QFileInfo(file).exists() for
file system access.
adaptive-webui-19844
Chocobo1 7 years ago
parent
commit
b4f23d8154
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 2
      src/base/utils/misc.cpp

2
src/base/utils/misc.cpp

@ -597,7 +597,7 @@ void Utils::Misc::openFolderSelect(const QString &absolutePath) @@ -597,7 +597,7 @@ void Utils::Misc::openFolderSelect(const QString &absolutePath)
{
const QString path = Utils::Fs::fromNativePath(absolutePath);
// If the item to select doesn't exist, try to open its parent
if (!QFileInfo(path).exists()) {
if (!QFileInfo::exists(path)) {
openPath(path.left(path.lastIndexOf("/")));
return;
}

Loading…
Cancel
Save