Commit 6d5df504 authored by Aaron J. Seigo's avatar Aaron J. Seigo

don't crash just because DirectoryList is bogus

svn path=/trunk/kdemultimedia/juk/; revision=352734
parent 21ebf568
......@@ -321,7 +321,12 @@ void JuK::saveConfig()
// player settings
KConfigGroup playerConfig(KGlobal::config(), "Player");
playerConfig.writeEntry("Volume", m_sliderAction->volumeSlider()->volume());
if (m_sliderAction->volumeSlider())
{
playerConfig.writeEntry("Volume", m_sliderAction->volumeSlider()->volume());
}
playerConfig.writeEntry("RandomPlay", m_randomPlayAction->isChecked());
KToggleAction *a = ActionCollection::action<KToggleAction>("loopPlaylist");
......
......@@ -125,7 +125,11 @@ void VolumeSlider::slotValueChanged(int value)
SliderAction::SliderAction(const QString &text, QObject *parent, const char *name)
: KAction(text, 0, parent, name),
m_toolBar(0), m_dragging(false)
m_toolBar(0),
m_layout(0),
m_trackPositionSlider(0),
m_volumeSlider(0),
m_dragging(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