Mercurial > minori
diff src/gui/pages/now_playing.cc @ 92:2c27582a177c
pages/now_playing: fix invalid catch
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 01 Nov 2023 00:00:56 -0400 |
parents | d02fdf1d6708 |
children | 18979b066284 |
line wrap: on
line diff
--- a/src/gui/pages/now_playing.cc Tue Oct 31 23:56:10 2023 -0400 +++ b/src/gui/pages/now_playing.cc Wed Nov 01 00:00:56 2023 -0400 @@ -94,7 +94,7 @@ _id = anime.GetId(); try { _episode = std::stoi(info.at("episode")); - } catch (std::invalid_argument) { + } catch (std::invalid_argument const&) { _episode = 0; } _title->SetText(Strings::ToQString(anime.GetUserPreferredTitle()));