diff --git a/src/widgets/dialogs/LoginDialog.cpp b/src/widgets/dialogs/LoginDialog.cpp index a2e5de16d..fde38b943 100644 --- a/src/widgets/dialogs/LoginDialog.cpp +++ b/src/widgets/dialogs/LoginDialog.cpp @@ -57,7 +57,7 @@ bool logInWithImplicitGrantCredentials(QWidget *parent, const QString &userID, errors.append("Missing OAuth Token"); } - if (errors.length() > 0) + if (!errors.empty()) { QMessageBox messageBox(parent); messageBox.setWindowTitle("Invalid account credentials");