aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui/covereditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qmmpui/covereditor.cpp')
-rw-r--r--src/qmmpui/covereditor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qmmpui/covereditor.cpp b/src/qmmpui/covereditor.cpp
index a47dae44a..45fd969dc 100644
--- a/src/qmmpui/covereditor.cpp
+++ b/src/qmmpui/covereditor.cpp
@@ -70,7 +70,8 @@ void CoverEditor::on_sourceComboBox_activated(int index)
}
else if(index == 1)
{
- m_viewer->setPixmap(m_model->cover());
+ if(m_model)
+ m_viewer->setPixmap(m_model->cover());
m_ui.loadButton->setEnabled(m_editable);
m_ui.deleteButton->setEnabled(m_editable && m_viewer->hasPixmap());
m_ui.saveAsButton->setEnabled(m_viewer->hasPixmap());