Commit ba7fa6c5 authored by Otmane Lahlou's avatar Otmane Lahlou

ENH: if command line has more then 2 argument, dont use the timer to quit the test

parent f2e9fc6f
......@@ -51,7 +51,7 @@ int mvdFillToolBoxWidgetTreeTest(int argc, char* argv[])
);
//
// is search path set
// is search path set
if (argc > 1)
{
browser->SetAutoLoadPath(argv[1]);
......@@ -64,6 +64,9 @@ int mvdFillToolBoxWidgetTreeTest(int argc, char* argv[])
//
// show the application for a while
appToolBox->show();
QTimer::singleShot(1000, &app, SLOT(quit()));
if ( argc <= 2 )
{
QTimer::singleShot(1000, &app, SLOT(quit()));
}
return app.exec();
}
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