[Gui] remove unnecessary Boolean comparisons

This commit is contained in:
Uwe
2022-06-15 03:47:55 +02:00
parent 8e253cb4c8
commit c23a30b916
13 changed files with 22 additions and 22 deletions

View File

@@ -261,9 +261,9 @@ bool NetworkRetriever::startDownload( const QString& startUrl )
if ( !d->dir.isEmpty() )
{
QDir dir(d->dir);
if ( dir.exists( d->dir ) == false )
if (!dir.exists(d->dir))
{
if ( dir.mkdir( d->dir ) == false)
if (!dir.mkdir(d->dir))
{
Base::Console().Error("Directory '%s' could not be created.", (const char*)d->dir.toLatin1());
return true; // please, no error message
@@ -534,7 +534,7 @@ void StdCmdDownloadOnlineHelp::activated(int iMsg)
if (canStart) {
bool ok = wget->startDownload(QString::fromLatin1(url.c_str()));
if ( ok == false )
if (!ok)
Base::Console().Error("The tool 'wget' couldn't be found. Please check your installation.");
else if ( wget->isDownloading() && _pcAction )
_pcAction->setText(tr("Stop downloading"));