Skip to content
Snippets Groups Projects
Commit 0345b11a authored by Julien Michel's avatar Julien Michel
Browse files

BUG: Fixing maximized command-line image loading

parent c20e95df
No related branches found
No related tags found
No related merge requests found
......@@ -54,6 +54,11 @@ main( int argc, char* argv[] )
mvd::MainWindow mainWindow;
mainWindow.showMaximized();
// This code is here to propagate events from maximization to child
// widgets, so that an image loaded from command-line will get the
// appropriate widget size and occupy as much space as possible on screen.
application.processEvents();
// Handle passing image filename from command-line
if(argc>1)
{
......@@ -65,7 +70,7 @@ main( int argc, char* argv[] )
// TODO: Remove width and height from dataset model loading.
mainWindow.centralWidget()->width(),
mainWindow.centralWidget()->height());
mvd::Application::Instance()->SetModel( model );
}
catch( std::exception& exc )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment