Commit cce685dd authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Fixing metatype declaration.

One type had been moved, and this was breaking server mode, as the
mainwindow isn't created in this mode.
parent 5af86960
......@@ -72,10 +72,6 @@ MainWindow::MainWindow( QWidget *parent ) :
{
m_ui.setupUi( this );
qRegisterMetaType<Workflow::TrackType>( "Workflow::TrackType" );
qRegisterMetaType<Vlmc::FrameChangedReason>( "MainWorkflow::FrameChangedReason" );
qRegisterMetaType<QVariant>( "QVariant" );
//We only install message handler here cause it uses configuration.
// VlmcDebug::getInstance()->setup();
......
......@@ -22,11 +22,15 @@
#include "config.h"
#include <QtDebug>
#include "Types.h"
#include <QMetaType>
#include <QVariant>
#include <sys/wait.h>
#include <unistd.h>
int VLMCmain( int , char** );
#if defined(WITH_CRASHHANDLER) && defined(Q_OS_UNIX)
......@@ -96,6 +100,9 @@ int main( int argc, char **argv )
}
}
#else
qRegisterMetaType<Workflow::TrackType>( "Workflow::TrackType" );
qRegisterMetaType<Vlmc::FrameChangedReason>( "Vlmc::FrameChangedReason" );
qRegisterMetaType<QVariant>( "QVariant" );
return VLMCmain( argc, argv );
#endif
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment