Merge pull request #5314 from ivan-leontiev/fix-globalsearch-sources
Move global search settings loading later in "MainWindow" initialisation
This commit is contained in:
commit
807e4552e1
|
@ -251,9 +251,6 @@ MainWindow::MainWindow(Application* app, SystemTrayIcon* tray_icon, OSD* osd,
|
|||
app_->library_backend(), tr("Library"), "library",
|
||||
IconLoader::Load("folder-sound", IconLoader::Base), true, app_, this));
|
||||
|
||||
app_->global_search()->ReloadSettings();
|
||||
global_search_view_->ReloadSettings();
|
||||
|
||||
connect(global_search_view_, SIGNAL(AddToPlaylist(QMimeData*)),
|
||||
SLOT(AddToPlaylist(QMimeData*)));
|
||||
|
||||
|
@ -988,6 +985,11 @@ MainWindow::MainWindow(Application* app, SystemTrayIcon* tray_icon, OSD* osd,
|
|||
|
||||
ReloadSettings();
|
||||
|
||||
// The "GlobalSearchView" requires that "InternetModel" has already been
|
||||
// initialised before reload settings.
|
||||
app_->global_search()->ReloadSettings();
|
||||
global_search_view_->ReloadSettings();
|
||||
|
||||
// Reload pretty OSD to avoid issues with fonts
|
||||
osd_->ReloadPrettyOSDSettings();
|
||||
|
||||
|
|
Loading…
Reference in New Issue