aboutsummaryrefslogtreecommitdiff
path: root/launcher/ui/dialogs
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2022-05-18 15:47:17 +0200
committerGitHub <noreply@github.com>2022-05-18 15:47:17 +0200
commitb883ce5c517e0d22d994ec894aa868d7e2392b06 (patch)
tree2408832b17b4b7e081017cfd585eeb5783b98081 /launcher/ui/dialogs
parentcc13310083fe8d0c3bb423fa3e31db7b1f7b25e1 (diff)
parenta21bd41580ba8ba4c0052efa8196d617e7211335 (diff)
downloadPrismLauncher-b883ce5c517e0d22d994ec894aa868d7e2392b06.tar.gz
PrismLauncher-b883ce5c517e0d22d994ec894aa868d7e2392b06.tar.bz2
PrismLauncher-b883ce5c517e0d22d994ec894aa868d7e2392b06.zip
Merge pull request #127 from Scrumplex/refactor-bump-qt5.12
Diffstat (limited to 'launcher/ui/dialogs')
-rw-r--r--launcher/ui/dialogs/ExportInstanceDialog.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/ui/dialogs/ExportInstanceDialog.cpp b/launcher/ui/dialogs/ExportInstanceDialog.cpp
index 5fac1015..8631edf6 100644
--- a/launcher/ui/dialogs/ExportInstanceDialog.cpp
+++ b/launcher/ui/dialogs/ExportInstanceDialog.cpp
@@ -117,7 +117,7 @@ public:
flags |= Qt::ItemIsUserCheckable;
if (sourceIndex.model()->hasChildren(sourceIndex))
{
- flags |= Qt::ItemIsTristate;
+ flags |= Qt::ItemIsAutoTristate;
}
}
@@ -210,7 +210,7 @@ public:
QStack<QModelIndex> todo;
while (1)
{
- auto node = doing.child(row, 0);
+ auto node = fsm->index(row, 0, doing);
if (!node.isValid())
{
if (!todo.size())
@@ -259,7 +259,7 @@ public:
QStack<QModelIndex> todo;
while (1)
{
- auto node = doing.child(row, 0);
+ auto node = this->index(row, 0, doing);
if (!node.isValid())
{
if (!todo.size())
@@ -460,7 +460,7 @@ void ExportInstanceDialog::rowsInserted(QModelIndex parent, int top, int bottom)
//WARNING: possible off-by-one?
for(int i = top; i < bottom; i++)
{
- auto node = parent.child(i, 0);
+ auto node = proxyModel->index(i, 0, parent);
if(proxyModel->shouldExpand(node))
{
auto expNode = node.parent();