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() ...@@ -216,9 +216,13 @@ void TagEditor::slotRefresh()
setEnabled(true); setEnabled(true);
PlaylistItem *item = m_items.first(); PlaylistItem *item = m_items.first();
Tag *tag = item->file().tag(); Tag *tag = item->file().tag();
QFileInfo fi(item->file().absFilePath()); QFileInfo fi(item->file().absFilePath());
if(!fi.isWritable() && m_items.count() == 1) if(!fi.isWritable() && m_items.count() == 1)
setEnabled(false); 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