forked from qt-creator/qt-creator
Bazaar: Simplify BazaarPluginPrivate::isConfigured() check
Change-Id: If3e940c38149f5ae75d99582593918f4847c8c3e Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -865,10 +865,7 @@ bool BazaarPluginPrivate::managesFile(const FilePath &workingDirectory, const QS
|
|||||||
bool BazaarPluginPrivate::isConfigured() const
|
bool BazaarPluginPrivate::isConfigured() const
|
||||||
{
|
{
|
||||||
const FilePath binary = m_settings.binaryPath.filePath();
|
const FilePath binary = m_settings.binaryPath.filePath();
|
||||||
if (binary.isEmpty())
|
return !binary.isEmpty() && binary.isExecutableFile();
|
||||||
return false;
|
|
||||||
QFileInfo fi = binary.toFileInfo();
|
|
||||||
return fi.exists() && fi.isFile() && fi.isExecutable();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BazaarPluginPrivate::supportsOperation(Operation operation) const
|
bool BazaarPluginPrivate::supportsOperation(Operation operation) const
|
||||||
|
Reference in New Issue
Block a user