diff --git a/lib/MellowPlayer/Application/Player/Song.cpp b/lib/MellowPlayer/Application/Player/Song.cpp index 85fabb34..fe24bf59 100644 --- a/lib/MellowPlayer/Application/Player/Song.cpp +++ b/lib/MellowPlayer/Application/Player/Song.cpp @@ -1,4 +1,5 @@ #include "Song.hpp" +#include using namespace MellowPlayer::Application; @@ -49,7 +50,7 @@ bool Song::isFavorite() const void Song::setDuration(double value) { - if (value == duration_) + if (abs(duration_ - value) < 2) return; duration_ = value;