If path is empty use documentpath
svn path=/trunk/KDE/kdebase/workspace/; revision=861450
This commit is contained in:
parent
23724e35b2
commit
bfc96a8630
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue