mirror of
https://github.com/QuasarApp/SoundBand.git
synced 2025-04-27 15:54:31 +00:00
isValid
This commit is contained in:
parent
def2259148
commit
d5970f0fb3
@ -29,7 +29,8 @@ unsigned int SongHeader::getSize() const{
|
||||
|
||||
bool SongHeader::isValid() const{
|
||||
|
||||
return id > -1 && !name.isEmpty() && size > 0;
|
||||
return id > -1 && !name.isEmpty() && size > 0 && name.endsWith(".mp3");
|
||||
|
||||
}
|
||||
|
||||
SongHeader::~SongHeader(){}
|
||||
|
Loading…
x
Reference in New Issue
Block a user