Commit 20426cca authored by David Redondo's avatar David Redondo 🏎
Browse files

Fix initial size of page download dialog

After reading the Qt Dialog code, I believe that by setting visible: true
we were hitting setVisible to early when we did not have a contenItem and
the dialog stays small even if we later set the contenItem.
BUG:433726
FIXED-IN:5.21.3
parent 423d16ee
......@@ -178,8 +178,6 @@ Kirigami.ApplicationWindow {
sourceComponent: Page.PageDialog {
title: i18nc("@window:title", "Add New Page")
visible: true
onAccepted: {
var fileName = name.toLowerCase().replace(" ", "_");
var newPage = pagesModel.addPage(fileName, {title: name, icon: iconName, margin: margin})
......@@ -201,7 +199,6 @@ Kirigami.ApplicationWindow {
sourceComponent: Page.PageSortDialog {
title: i18nc("@window:title", "Edit Pages")
model: pagesModel
visible: true
}
}
......@@ -219,7 +216,6 @@ Kirigami.ApplicationWindow {
pagesModel.ghnsEntriesChanged(downloadDialog.engine.changedEntries)
}
}
visible: true
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment