If path is empty use documentpath

svn path=/trunk/KDE/kdebase/workspace/; revision=861450
This commit is contained in:
Laurent Montel 2008-09-16 07:29:05 +00:00
parent 23724e35b2
commit bfc96a8630

View file

@ -101,7 +101,10 @@ void VideoRecordEffectConfig::save()
KConfigGroup conf = EffectsHandler::effectConfig("VideoRecord");
conf.writeEntry("videopath", saveVideo->url().path());
if( saveVideo->url().isEmpty() )
conf.writeEntry("videopath", KGlobalSettings::documentPath());
else
conf.writeEntry("videopath", saveVideo->url().path());
conf.sync();