diff --git a/src/playlist_editor.cpp b/src/playlist_editor.cpp index 690edc50..0c8e5550 100644 --- a/src/playlist_editor.cpp +++ b/src/playlist_editor.cpp @@ -125,9 +125,9 @@ void PlaylistEditor::switchTo() void PlaylistEditor::update() { - if (Playlists.reallyEmpty() || playlistsUpdateRequested) + if (Playlists.reallyEmpty() || m_playlists_update_requested) { - playlistsUpdateRequested = false; + m_playlists_update_requested = false; Playlists.clearSearchResults(); withUnfilteredMenuReapplyFilter(Playlists, [this]() { size_t idx = 0; @@ -146,9 +146,9 @@ void PlaylistEditor::update() Playlists.refresh(); } - if (!Playlists.empty() && (Content.reallyEmpty() || contentUpdateRequested)) + if (!Playlists.empty() && (Content.reallyEmpty() || m_content_update_requested)) { - contentUpdateRequested = false; + m_content_update_requested = false; Content.clearSearchResults(); withUnfilteredMenuReapplyFilter(Content, [this]() { size_t idx = 0; diff --git a/src/playlist_editor.h b/src/playlist_editor.h index 76dfefad..3b7d9db5 100644 --- a/src/playlist_editor.h +++ b/src/playlist_editor.h @@ -69,8 +69,8 @@ struct PlaylistEditor: Screen, Filterable, HasColumns, HasSongs, S virtual void nextColumn() OVERRIDE; // private members - void requestPlaylistsUpdate() { playlistsUpdateRequested = true; } - void requestContentsUpdate() { contentUpdateRequested = true; } + void requestPlaylistsUpdate() { m_playlists_update_requested = true; } + void requestContentsUpdate() { m_content_update_requested = true; } virtual void Locate(const std::string &); bool isContentFiltered(); @@ -85,8 +85,8 @@ protected: private: void AddToPlaylist(bool); - bool playlistsUpdateRequested; - bool contentUpdateRequested; + bool m_playlists_update_requested; + bool m_content_update_requested; }; extern PlaylistEditor *myPlaylistEditor;