summaryrefslogtreecommitdiff
path: root/src/media_library.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/media_library.cpp')
-rw-r--r--src/media_library.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/media_library.cpp b/src/media_library.cpp
index 87542bd0..b5a0e876 100644
--- a/src/media_library.cpp
+++ b/src/media_library.cpp
@@ -75,6 +75,7 @@ void MediaLibrary::Init()
Songs->SetGetStringFunction(SongToString);
w = Artists;
+ isInitialized = 1;
}
void MediaLibrary::Resize()
@@ -141,6 +142,9 @@ void MediaLibrary::SwitchTo()
Albums->SetTitle("Albums");
}
+ if (!isInitialized)
+ Init();
+
if (hasToBeResized)
Resize();