SelectiveSync: adjust the position of the "Loading" label
authorOlivier Goffart <ogoffart@woboq.com>
Wed, 11 Jan 2017 14:55:07 +0000 (15:55 +0100)
committerChristian Kamm <mail@ckamm.de>
Fri, 13 Jan 2017 09:55:45 +0000 (10:55 +0100)
It should be parented to the treeview to be sure that is shows inside of it.

src/gui/selectivesyncdialog.cpp

index 296b32e5e6cc0a82a89913269eb1f8bdacf07bf1..4f23e248b425527a1dfaea66991ff4d6abdc79f6 100644 (file)
@@ -62,7 +62,7 @@ SelectiveSyncWidget::SelectiveSyncWidget(AccountPtr account, QWidget *parent)
     , _inserting(false)
     , _folderTree(new QTreeWidget(this))
 {
-    _loading = new QLabel(tr("Loading ..."), this);
+    _loading = new QLabel(tr("Loading ..."), _folderTree);
 
     auto layout = new QVBoxLayout(this);
     layout->setContentsMargins(0, 0, 0, 0);