Commit 839c8d40 authored by Benjamin Meyer's avatar Benjamin Meyer

Don't crash if item or tag are null. Allas this isn't the crash

that is bug 99372

svn path=/trunk/kdemultimedia/juk/; revision=390796
parent b794f9d6
......@@ -216,9 +216,13 @@ void TagEditor::slotRefresh()
setEnabled(true);
PlaylistItem *item = m_items.first();
if(!item)
return;
Tag *tag = item->file().tag();
if(!tag)
return;
QFileInfo fi(item->file().absFilePath());
if(!fi.isWritable() && m_items.count() == 1)
setEnabled(false);
......
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