Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/desktop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCamila San <hello@camila.codes>2020-05-29 16:07:05 +0300
committerKevin Ottens (Rebase PR Action) <er-vin@users.noreply.github.com>2020-06-03 10:50:40 +0300
commit3bae570f29e8c53386d35b0d2f33cbe6b435c0c7 (patch)
tree93a231d526d0ae70fccb9000e4eeeedf0e423d7c /src/gui/settingsdialog.cpp
parente90eb9d717183776b3232bbe09b8e7907ca937c2 (diff)
Do not declare local variables without an initial value.
Signed-off-by: Camila San <hello@camila.codes>
Diffstat (limited to 'src/gui/settingsdialog.cpp')
-rw-r--r--src/gui/settingsdialog.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp
index 51a42cb4f..f63533897 100644
--- a/src/gui/settingsdialog.cpp
+++ b/src/gui/settingsdialog.cpp
@@ -202,7 +202,7 @@ void SettingsDialog::accountAdded(AccountState *s)
auto height = _toolBar->sizeHint().height();
bool brandingSingleAccount = !Theme::instance()->multiAccount();
- QAction *accountAction;
+ QAction *accountAction = nullptr;
QImage avatar = s->account()->avatar();
const QString actionText = brandingSingleAccount ? tr("Account") : s->account()->displayName();
if (avatar.isNull()) {