Bazaar: Simplify BazaarPluginPrivate::isConfigured() check

Change-Id: If3e940c38149f5ae75d99582593918f4847c8c3e
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
hjk
2021-08-20 16:35:53 +02:00
parent 4bf6008158
commit a9f5a9c6a4

View File

@@ -865,10 +865,7 @@ bool BazaarPluginPrivate::managesFile(const FilePath &workingDirectory, const QS
bool BazaarPluginPrivate::isConfigured() const
{
const FilePath binary = m_settings.binaryPath.filePath();
if (binary.isEmpty())
return false;
QFileInfo fi = binary.toFileInfo();
return fi.exists() && fi.isFile() && fi.isExecutable();
return !binary.isEmpty() && binary.isExecutableFile();
}
bool BazaarPluginPrivate::supportsOperation(Operation operation) const