Commit 192fc005 authored by Michael Pyne's avatar Michael Pyne

Have FileHandle::isNull check for empty filenames.

This may have worked back in Qt 3 times but this appears to be the
source of the common JuK complaint about "trying to add an empty file"
(which seems to be related to the Now Playing widget trying to show tags
for what it thinks is a valid FileHandle).
parent 8781b8f5
......@@ -152,7 +152,7 @@ const QFileInfo &FileHandle::fileInfo() const
bool FileHandle::isNull() const
{
return *this == null();
return (*this == null() || d->absFilePath.isEmpty());
}
bool FileHandle::current() const
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment