status: fix assertion failure on window resize without active mpd connection
This commit is contained in:
1
NEWS
1
NEWS
@@ -7,6 +7,7 @@ ncmpcpp-0.6.5 (????-??-??)
|
|||||||
* Xiph tag DESCRIPTION is now rewritten as COMMENT when updating tags.
|
* Xiph tag DESCRIPTION is now rewritten as COMMENT when updating tags.
|
||||||
* Possible access of already freed memory when downloading artist info is fixed.
|
* Possible access of already freed memory when downloading artist info is fixed.
|
||||||
* Name of an item is now displayed correctly if present.
|
* Name of an item is now displayed correctly if present.
|
||||||
|
* Assertion failure when resizing terminal window with no active MPD connection is fixed.
|
||||||
|
|
||||||
ncmpcpp-0.6.4 (2015-05-02)
|
ncmpcpp-0.6.4 (2015-05-02)
|
||||||
|
|
||||||
|
|||||||
@@ -557,7 +557,7 @@ void Status::Changes::elapsedTime(bool update_elapsed)
|
|||||||
m_kbps = st.kbps();
|
m_kbps = st.kbps();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m_player_state == MPD::psStop)
|
if (m_player_state == MPD::psUnknown || m_player_state == MPD::psStop)
|
||||||
{
|
{
|
||||||
if (Statusbar::isUnlocked() && Config.statusbar_visibility)
|
if (Statusbar::isUnlocked() && Config.statusbar_visibility)
|
||||||
*wFooter << NC::XY(0, 1) << wclrtoeol;
|
*wFooter << NC::XY(0, 1) << wclrtoeol;
|
||||||
@@ -565,6 +565,7 @@ void Status::Changes::elapsedTime(bool update_elapsed)
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string ps = playerStateToString(m_player_state);
|
std::string ps = playerStateToString(m_player_state);
|
||||||
|
|
||||||
MPD::Song np = myPlaylist->nowPlayingSong();
|
MPD::Song np = myPlaylist->nowPlayingSong();
|
||||||
drawTitle(np);
|
drawTitle(np);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user