Commit d4e47d75 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen
Browse files

MainWindow: Restore settings after creating the entire UI

This mostly allows all medialibrary events to be processed properly by
the UI. Otherwise, there's nothing to receive those events
parent 9555f67f
......@@ -79,8 +79,6 @@ MainWindow::MainWindow( Backend::IBackend* backend, QWidget *parent )
Core::instance()->logger()->setup();
//Preferences
initVlmcPreferences();
//All preferences have been created: restore them:
Core::instance()->settings()->load();
// GUI
createGlobalPreferences();
......@@ -125,6 +123,10 @@ MainWindow::MainWindow( Backend::IBackend* backend, QWidget *parent )
if ( restoreSession() == true )
return ;
#endif
//All preferences have been created: restore them:
Core::instance()->settings()->load();
// Restore the geometry
restoreGeometry( VLMC_GET_BYTEARRAY( "private/MainWindowGeometry" ) );
// Restore the layout
......
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