#4712 Fix stray widgets in Plot Property Panel

Added comments showing that the reason is mainly deleteLater beeing called outside all event loops
This commit is contained in:
Jacob Støren
2019-09-25 13:09:47 +02:00
parent 3f7fde5227
commit bfff15568d
3 changed files with 31 additions and 23 deletions

View File

@@ -86,7 +86,14 @@ int main( int argc, char* argv[] )
QLocale::setDefault( QLocale( QLocale::English, QLocale::UnitedStates ) );
setlocale( LC_NUMERIC, "C" );
// Handle the command line arguments.
// Todo: Move to a one-shot timer, delaying the execution until we are inside the event loop.
// The complete handling of the resulting ApplicationStatus must be moved along.
// The reason for this is: deleteLater() does not work outside the event loop
// Make execution of command line stuff operate in identical conditions as interactive operation.
RiaApplication::ApplicationStatus status = app->handleArguments( &progOpt );
if ( status == RiaApplication::EXIT_COMPLETED )
{
return 0;