[URGENT PATCH] Fixing file saving and X Cursor pointing
This commit is contained in:
parent
f58b972359
commit
4ad4b53de4
2 changed files with 3 additions and 3 deletions
|
@ -181,7 +181,7 @@ D.Dialog {
|
||||||
property bool selectObjMode: paramTypeIn(modelData[1], ['ObjectType'])
|
property bool selectObjMode: paramTypeIn(modelData[1], ['ObjectType'])
|
||||||
|
|
||||||
property var baseModel: visible ?
|
property var baseModel: visible ?
|
||||||
(selectObjMode ? Objects.getObjectsName(modelData[1].objType).concat([qsTr("+ Create new %1").arg(Objects.types[modelData[1].objType].displayType())]) : modelData[1].values)
|
(selectObjMode ? Objects.getObjectsName(modelData[1].objType).concat([qsTr("+ Create new %1").arg(modelData[1].objType)]) : modelData[1].values)
|
||||||
: []
|
: []
|
||||||
// Translate the model if necessary.
|
// Translate the model if necessary.
|
||||||
model: selectObjMode ? baseModel : baseModel.map(x => qsTr(x))
|
model: selectObjMode ? baseModel : baseModel.map(x => qsTr(x))
|
||||||
|
|
|
@ -18,7 +18,6 @@
|
||||||
|
|
||||||
import QtQuick.Controls 2.12
|
import QtQuick.Controls 2.12
|
||||||
import QtQuick 2.12
|
import QtQuick 2.12
|
||||||
import QtQuick.Dialogs 1.1
|
|
||||||
import "js/utils.js" as Utils
|
import "js/utils.js" as Utils
|
||||||
|
|
||||||
ScrollView {
|
ScrollView {
|
||||||
|
@ -350,6 +349,7 @@ ScrollView {
|
||||||
|
|
||||||
function save() {
|
function save() {
|
||||||
if(settings.saveFilename == "") {
|
if(settings.saveFilename == "") {
|
||||||
|
console.log(fdiag, fdiag.exportMode)
|
||||||
fdiag.exportMode = true
|
fdiag.exportMode = true
|
||||||
fdiag.open()
|
fdiag.open()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue