Add parent windows to file dialogs

This makes sure they are properly placed and modal to the main window
This commit is contained in:
Nicolas Fella
2023-02-25 01:41:18 +01:00
committed by Tobias Fella
parent 44ec93f0a0
commit 8825e6ec83
4 changed files with 14 additions and 2 deletions

View File

@@ -6,6 +6,7 @@ import QtQuick 2.15
import QtQuick.Controls 2.15 as QQC2
import QtQuick.Layouts 1.15
import Qt.labs.platform 1.1
import QtQuick.Window 2.15
import org.kde.kirigami 2.15 as Kirigami
import org.kde.kirigamiaddons.labs.mobileform 0.1 as MobileForm
@@ -248,6 +249,7 @@ Kirigami.ScrollablePage {
OpenFileDialog {
folder: StandardPaths.writableLocation(StandardPaths.PicturesLocation)
parentWindow: root.Window.window
}
}
}