Fixing opening files on Windows (regression)
This commit is contained in:
parent
b90c72c0b1
commit
70333a4e41
1 changed files with 3 additions and 1 deletions
|
@ -130,7 +130,9 @@ ScrollView {
|
||||||
Popup.FileDialog {
|
Popup.FileDialog {
|
||||||
id: fdiag
|
id: fdiag
|
||||||
onAccepted: {
|
onAccepted: {
|
||||||
var filePath = fdiag.currentFile.toString().substr(7)
|
let filePath = fdiag.currentFile.toString().substr(7)
|
||||||
|
if(filePath.at(2) === ":") // Windows path, remove the leading slash.
|
||||||
|
filePath = filePath.substr(1)
|
||||||
Modules.Settings.set("saveFilename", filePath)
|
Modules.Settings.set("saveFilename", filePath)
|
||||||
if(exportMode) {
|
if(exportMode) {
|
||||||
Modules.IO.saveDiagram(filePath)
|
Modules.IO.saveDiagram(filePath)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue