mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +02:00
[ui] Fix unsaved graph and compute only a part
This commit is contained in:
parent
26ecf3ce92
commit
f166f81cb1
1 changed files with 3 additions and 3 deletions
|
@ -219,7 +219,7 @@ ApplicationWindow {
|
||||||
function compute(nodes, force) {
|
function compute(nodes, force) {
|
||||||
if (!force && warnIfUnsaved && !_reconstruction.graph.filepath)
|
if (!force && warnIfUnsaved && !_reconstruction.graph.filepath)
|
||||||
{
|
{
|
||||||
unsavedComputeDialog.currentNode = nodes[0];
|
unsavedComputeDialog.selectedNodes = nodes;
|
||||||
unsavedComputeDialog.open();
|
unsavedComputeDialog.open();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -323,7 +323,7 @@ ApplicationWindow {
|
||||||
MessageDialog {
|
MessageDialog {
|
||||||
id: unsavedComputeDialog
|
id: unsavedComputeDialog
|
||||||
|
|
||||||
property var currentNode: null
|
property var selectedNodes: null
|
||||||
|
|
||||||
canCopy: false
|
canCopy: false
|
||||||
icon.text: MaterialIcons.warning
|
icon.text: MaterialIcons.warning
|
||||||
|
@ -349,7 +349,7 @@ ApplicationWindow {
|
||||||
|
|
||||||
onDiscarded: {
|
onDiscarded: {
|
||||||
close()
|
close()
|
||||||
computeManager.compute(currentNode, true)
|
computeManager.compute(selectedNodes, true)
|
||||||
}
|
}
|
||||||
|
|
||||||
onAccepted: saveAsAction.trigger()
|
onAccepted: saveAsAction.trigger()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue