projects
/
nextcloud-desktop.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
639301e
)
AccountSettings: Auto-expand only single folders #4283
author
Christian Kamm
<mail@ckamm.de>
Wed, 20 Jan 2016 11:41:52 +0000
(12:41 +0100)
committer
Christian Kamm
<mail@ckamm.de>
Wed, 20 Jan 2016 11:41:52 +0000
(12:41 +0100)
src/gui/accountsettings.cpp
patch
|
blob
|
history
diff --git
a/src/gui/accountsettings.cpp
b/src/gui/accountsettings.cpp
index fe467ebc831c6bb27a5f85ec2d7375f6e92aca55..837c0d05f19a5b53632fd1308caa9b8615902f88 100644
(file)
--- a/
src/gui/accountsettings.cpp
+++ b/
src/gui/accountsettings.cpp
@@
-695,7
+695,11
@@
bool AccountSettings::event(QEvent* e)
_quotaInfo.setActive(isVisible());
}
if (e->type() == QEvent::Show) {
- ui->_folderList->setExpanded(_model->index(0, 0), true);
+ // Expand the folder automatically only if there's only one, see #4283
+ // The 2 is 1 folder + 1 'add folder' button
+ if (_model->rowCount() <= 2) {
+ ui->_folderList->setExpanded(_model->index(0, 0), true);
+ }
}
return QWidget::event(e);
}