aboutsummaryrefslogtreecommitdiff
path: root/src/qmmpui
diff options
context:
space:
mode:
authortrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-07-28 21:00:52 +0000
committertrialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38>2019-07-28 21:00:52 +0000
commit3e97be43cfc00376522a545b321061af93e316b6 (patch)
tree43c03e6efc51c792abd7654fb419bba647284e7b /src/qmmpui
parent6c95ea127b0204b0f23ff0baa6d40d6dc8505c92 (diff)
downloadqmmp-3e97be43cfc00376522a545b321061af93e316b6.tar.gz
qmmp-3e97be43cfc00376522a545b321061af93e316b6.tar.bz2
qmmp-3e97be43cfc00376522a545b321061af93e316b6.zip
fixed possible crash
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@9025 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui')
-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());