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:
authorJ-P Nurmi <jpnurmi@gmail.com>2018-11-12 20:53:47 +0300
committerJ-P Nurmi <jpnurmi@gmail.com>2018-11-12 20:53:47 +0300
commitb0959a6292e29ffacfea3ad3a470cea3216527b7 (patch)
tree4b68a97148d4ea6b6b7e403d4e7467de0a478211 /src/gui/settingsdialog.cpp
parent9f6bb617e9ae755adfd61ad323df71781a48b319 (diff)
SettingsDialog: fix a little glitch in the account tool button size
SettingsDialog::accountAdded() uses the height of the toolbar to calculate the desired default size for toolbuttons. Make sure to have the "General" and "Network" tool buttons in place before calling accountAdded() to avoid cramped first button.
Diffstat (limited to 'src/gui/settingsdialog.cpp')
-rw-r--r--src/gui/settingsdialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/settingsdialog.cpp b/src/gui/settingsdialog.cpp
index 515b39880..21d5f9bfe 100644
--- a/src/gui/settingsdialog.cpp
+++ b/src/gui/settingsdialog.cpp
@@ -93,10 +93,6 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent)
_actionGroup->setExclusive(true);
connect(_actionGroup, &QActionGroup::triggered, this, &SettingsDialog::slotSwitchPage);
- foreach(auto ai, AccountManager::instance()->accounts()) {
- accountAdded(ai.data());
- }
-
_actionBefore = new QAction(this);
_toolBar->addAction(_actionBefore);
@@ -121,6 +117,10 @@ SettingsDialog::SettingsDialog(ownCloudGui *gui, QWidget *parent)
_actionGroupWidgets.insert(generalAction, generalSettings);
_actionGroupWidgets.insert(networkAction, networkSettings);
+ foreach(auto ai, AccountManager::instance()->accounts()) {
+ accountAdded(ai.data());
+ }
+
QTimer::singleShot(1, this, &SettingsDialog::showFirstPage);
QAction *showLogWindow = new QAction(this);