Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 8954bcd9 authored by Scott Wheeler's avatar Scott Wheeler

Check for null here.

CCMAIL:73998-done@bugs.kde.org

svn path=/trunk/kdemultimedia/juk/; revision=297466
parent ec47f1f4
......@@ -439,7 +439,8 @@ void TagEditor::save(const PlaylistItemList &list)
// If not we'll append it to errorFiles to tell the user which
// files we couldn't write to.
if(item->file().tag() &&
if(item &&
item->file().tag() &&
(newFile.isWritable() || (!newFile.exists() && directory.isWritable())) &&
item->file().fileInfo().isWritable())
{
......@@ -490,7 +491,7 @@ void TagEditor::save(const PlaylistItemList &list)
item->slotRefresh();
}
else
else if(item)
errorFiles.append(item->file().absFilePath());
kapp->processEvents();
......
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