[vlmc-devel] MainWorkflow: Don't use WorkflowFileRendererDialog in non-gui build

Yikai Lu git at videolan.org
Wed May 31 09:01:33 CEST 2017


vlmc | branch: master | Yikai Lu <luyikei.qmltu at gmail.com> | Wed May 31 15:13:06 2017 +0900| [c4fd8734a87ca0a938a0613bf07f1b56513ceb50] | committer: Yikai Lu

MainWorkflow: Don't use WorkflowFileRendererDialog in non-gui build

> https://code.videolan.org/videolan/vlmc/commit/c4fd8734a87ca0a938a0613bf07f1b56513ceb50
---

 src/Workflow/MainWorkflow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Workflow/MainWorkflow.cpp b/src/Workflow/MainWorkflow.cpp
index 4e72d77e..e622970a 100644
--- a/src/Workflow/MainWorkflow.cpp
+++ b/src/Workflow/MainWorkflow.cpp
@@ -348,10 +348,10 @@ MainWorkflow::startRenderToFile( const QString &outputFileName, quint32 width, q
             dialog.updatePreview( input->image( width, height ) );
         }
     });
+    connect( this, &MainWorkflow::mainWorkflowEndReached, &dialog, &WorkflowFileRendererDialog::accept );
 #endif
 
     connect( this, &MainWorkflow::mainWorkflowEndReached, this, [&output]{ output.stop(); } );
-    connect( this, &MainWorkflow::mainWorkflowEndReached, &dialog, &WorkflowFileRendererDialog::accept );
 
     input->setPosition( 0 );
     output.start();



More information about the Vlmc-devel mailing list